openHASP-custom-component
openHASP-custom-component copied to clipboard
PIL uses a width,height tuple for resize() and thumbnail().
Using a 300x480 img object, and surprised to find the image was being resized to 480x300 with fitscreen=true. Looking at the image_to_rgb565 routine in the openHASP custom component, height & width had been transposed.
Interesting catch... how this went by for so long
If you only ever used a 1:1 aspect ratio, it would never be noticed.
fitscreen
is relatively new and not extensively documented/used I guess...
I made a 0.7.3 pre-release and also set 0.7.2 as latest version.
@FreeBear-nc Please test 0.7.3 and if all is well, that will be the latest release, sometime next week.
Appears to be functioning as expected.