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.py stretches certain pictures with different aspect ratios to the screen #189

Open
kikura opened this issue Apr 23, 2024 · 2 comments

Comments

@kikura
Copy link

kikura commented Apr 23, 2024

Is there any way around this please?

@Gadgetoid
Copy link
Member

It would be relatively straight-forward to use PIL to crop or proportionally resize images to your preference, but image.py doesn't try to be smart.

You'll probably need to create a new PIL Image at the target display size, resize your source image, and paste it into the target. eg: https://stackoverflow.com/questions/72492487/pil-paste-image-with-resized-aspect-ratio

@kikura
Copy link
Author

kikura commented May 2, 2024 via email

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

No branches or pull requests

2 participants