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

Reuse of the same image with different sized displays causes a random resize. #143

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

xNUTx
Copy link
Contributor

@xNUTx xNUTx commented Aug 14, 2024

When using the same image source more then once, using a md5 hash of the image itself will cause the same image to be overwritten time and time again if you redo the resize for another screen... resulting in an ever changing image size.

This change fixes that and the resize function replacement ImageOps.fit will speed up the image processing compared to the original without sacrificing the quality too much, while preserving the aspect ratios.

…the image itself will cause the same image to be overwritten time and time again if you redo the resize for another screen... resulting in an ever changing image size. This change undoes that and the new ImageOps feature will speed up the image processing compared to the orignal without sacrificing the quality too much.
@fvanroie fvanroie merged commit 133f5ea into HASwitchPlate:main Aug 14, 2024
2 checks passed
@fvanroie
Copy link
Collaborator

Thanks

@xNUTx xNUTx deleted the imageresize branch August 15, 2024 09:26
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.

3 participants