Baseflow / Baseflow/flutter_cache_manager
need resizeImage more option
- Lenguaje dominante
- Dart
- Estrellas
- 809
- Forks
- 510
- Merge medio
- 6 min
- PR fusionados (30 d)
- 1
Descripción
image_cache_manager.dart
line 89:
var resizeFactor = max(resizeFactorHeight, resizeFactorWidth);
Get the maximum compression ratio here, which will make the picture very blurry. eg:
rawImage size: 300 x 1000
display size: 50 x 50
resize: 15 x 50
Then the width of the display on the interface will stretch, and the picture will look terrible.
Can an option be enabled for the developer to decide how to resize? For example, change the code to the following
var resizeFactor = min(resizeFactorHeight, resizeFactorWidth);
Guía de contribución
Línea de trabajo
Start in image_cache_manager.dart at line 89 and trace how resizeFactorHeight and resizeFactorWidth determine the cached image dimensions. Define the developer-facing resize option requested by the issue, then verify that the 300 x 1000 versus 50 x 50 example avoids excessive blurring and unwanted stretching.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- dart
- Área
- mobile-dev
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 48/100