Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image fix #12507

Merged
merged 6 commits into from
Apr 14, 2024
Merged

Image fix #12507

merged 6 commits into from
Apr 14, 2024

Conversation

DanVanAtta
Copy link
Member

@DanVanAtta DanVanAtta commented Apr 14, 2024

Notes to Reviewer

Fixes: #12500

Issue is difference between: getImage(imageKey) vs getTransformedImage(imageKey)
getImage returns a scaled image, getTransformedImage returns an unscaled image.

Issue was introduced in: 1ab27d4, there was a mistake to swap 'getTransformedImage' with 'getImage'. Without the clarification that one returns a scaled image and the other does not, it really does look they ought to return the same result. The multiple layers of caching also makes this confusing. It's very surprising for the 'image icon' cache to store unscaled images while the 'images' cache stores scaled images (one would expect both of them to store scaled images).

The problem with the purchase screen is that the scaled images were being used, rather than the 100% scale images.

image

@DanVanAtta DanVanAtta merged commit 2ccb520 into master Apr 14, 2024
1 check passed
@DanVanAtta DanVanAtta deleted the image-fix branch April 14, 2024 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unit Size Different In Bottom Bar and Windows with Zoom in 2.6
1 participant