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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.