Baseflow / Baseflow/flutter_cache_manager

need resizeImage more option

Open
#348 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
809
Forks
510
Avg merge
6m
Merged PRs (30d)
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);

Contributor guide

Open the contributing guide

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
mobile-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.