Baseflow / Baseflow/flutter_cache_manager

need resizeImage more option

Đang mở
#348 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Dart
Star
809
Fork
510
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
1

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
dart
Lĩnh vực
mobile-dev
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.