Baseflow / flutter_cache_manager

Generic cache manager for flutter
https://baseflow.com
MIT License
739 stars 426 forks source link

need resizeImage more option #348

Open HaijunWei opened 2 years ago

HaijunWei commented 2 years ago

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