Baseflow / Baseflow/flutter_cache_manager

need resizeImage more option

未关闭
#348 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Dart
星标
809
派生
510
平均合并
6 分钟
30 天内合并 PR
1

描述

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

贡献指南

打开贡献指南

调研方向

从 image_cache_manager.dart 第 89 行开始,追踪 resizeFactorHeight 和 resizeFactorWidth 如何确定缓存图像的尺寸。定义 issue 所要求的面向开发者的调整大小选项,然后验证 300 x 1000 与 50 x 50 的示例能够避免过度模糊和不必要的拉伸。

由索引模型根据 Issue 内容生成。

评估

技术栈
dart
领域
mobile-dev
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。