Baseflow / Baseflow/flutter_cache_manager
need resizeImage more option
- 主要语言
- 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