Open kikura opened 7 months ago
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
Many thanks.
I will try this 👍 On 24 Apr 2024, 10:06 +0100, Philip Howard @.***>, wrote:
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 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Is there any way around this please?