Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Balance the graphics context in image resizing

Abierto
#2,013 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

@ivan-magda ya está trabajando en esto.

Desde el 12/10/2026.

  • #2014 de @ivan-magda — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
ios, swift
Área
mobile

Línea de trabajo

Start with UIImage.resize(maxWidthHeight:) in FSNotes iOS/Extensions/UIImage+.swift at the linked lines. Check how the helper starts the graphics context and extracts the image, then run the reproduction with an outer UIKit graphics context. Done means the caller’s outer context is current again after resizing; an open pull request already addresses this issue.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Description

UIImage.resize(maxWidthHeight:) begins a graphics context and returns without ending it. A caller with an existing current context therefore keeps the resize context current after the helper returns.

To Reproduce

Create an outer UIKit graphics context, call the resize helper, then inspect the current context. A probe using the production helper on iOS 26.5 found the inner context still current for landscape, portrait, and square inputs (3/3); all three returned bitmap sizes matched the requested geometry.

Expected behavior

End the resize context after image extraction so the caller’s outer context becomes current again.

FSNotes version

iOS 7.3.4 target source

macOS/iOS version

iOS 26.5 probe runtime; iOS Simulator SDK 27.0 build environment;

Lenguaje dominante
Swift
Estrellas
7.5k
Forks
580
Merge medio
2 d 17 h
PR fusionados (30 d)
4

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de glushchenko/fsnotes

Todos los issues de glushchenko/fsnotes

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.