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

desklet-photoframe: change image size to guarantee keeping the ratio #12717

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

watertrainer
Copy link

Currently, sometimes the images get squeezed, when in line 161 height is bigger than the height of the desklet and then the ratio isn't kept. Now this doesn't happen, as we always guarantee that the aspect ratio is kept and both height and width of the image stay smaller than the one of the desklet. See https://stackoverflow.com/questions/3971841/how-to-resize-images-proportionally-keeping-the-aspect-ratio for more details

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.

1 participant