Balance the graphics context in image resizing
Los mantenedores suelen responder en 3 días
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de glushchenko/fsnotes
-
Option to focus the search field on launch instead of restoring the last note into the editor (macOS)Posiblemente ocupada @cybermartini la tomó hace 6 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
glushchenko/fsnotes#2008 ·
Los mantenedores suelen responder en 3 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
glushchenko/fsnotes#2007 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
glushchenko/fsnotes#2010 ·
Los mantenedores suelen responder en 3 días
-
FSNotes 8Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
glushchenko/fsnotes#1974 ·
Los mantenedores suelen responder en 3 días
Todos los issues de glushchenko/fsnotes
Issues similares
-
agent/quality help wanted origin/quality quality stage/010-actionable testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
hivecommons/hotshot#227 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
cucumberswift/CucumberSwift#437 ·
Los mantenedores suelen responder en 1 día
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
-
Ace: adopt desktopToolRules()Abiertoace documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
githubnext/desktop-tools#104 ·
Los mantenedores suelen responder en 1 día
-
Bug MapKit SwiftUI
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
vdhamer/Photo-Club-Hub#885 · 1 comentario ·