inky icon indicating copy to clipboard operation
inky copied to clipboard

image.py stretches certain pictures with different aspect ratios to the screen

Open kikura opened this issue 1 year ago • 2 comments

Is there any way around this please?

kikura avatar Apr 23 '24 22:04 kikura

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

Gadgetoid avatar Apr 24 '24 09:04 Gadgetoid

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: @.***>

kikura avatar May 02 '24 08:05 kikura