Baseflow / Baseflow/flutter_cache_manager

need resizeImage more option

Ouverte
#348 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Dart
Étoiles
809
Forks
510
Merge moyen
6 min
PR mergées (30 j)
1

Description

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);

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
dart
Domaine
mobile-dev
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.