LuckSiege / LuckSiege/PictureSelector

v2.7.3-rc07后裁剪后的图片宽高远尺寸变小了

Open
#2,207 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

`v2.7.3-rc07`后裁剪后的图片宽高远尺寸变小了。看了下似乎是因为缩放比例的问题

![image](https://user-images.githubusercontent.com/47204593/145551798-da066d9b-6dd4-4b3c-a995-05b918de5c60.png)

当运行`v2.7.3-rc07`版本的demo,裁剪比例选3:4时,缩放显示352%

![image](https://user-images.githubusercontent.com/47204593/145552195-165811c7-a9b0-47a6-b4cb-293a310430f5.png)

![image](https://user-images.githubusercontent.com/47204593/145552003-3ddb125d-4433-4492-a70e-a9bb3ae0a17b.png)

![image](https://user-images.githubusercontent.com/47204593/145554776-607eefcd-68f2-4a6b-8d9e-ed4b3196bbc9.png)

但用最新的代码`v2.7.3-rc10`时,缩放显示703%,导致最后裁剪出来的图片宽高变小。

![image](https://user-images.githubusercontent.com/47204593/145552487-95b3e7e5-5bc1-4b5e-8c7a-e64aa1a74bc8.png)

![image](https://user-images.githubusercontent.com/47204593/145552985-ec85a139-7a92-42fe-aabb-c6b82c79c62c.png)

![image](https://user-images.githubusercontent.com/47204593/145554391-82811adb-c4d8-43da-9c54-d69bfc9e4794.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the crop using the demo with the 3:4 ratio on v2.7.3-rc07 and v2.7.3-rc10, comparing the displayed zoom percentages and resulting image dimensions. Trace the scaling calculation responsible for the change after rc07. Done means the crop output dimensions and zoom behavior match the expected result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.