HASwitchPlate / openHASP-custom-component

Home Assistant custom component for openHASP
https://www.openhasp.com
MIT License
51 stars 12 forks source link

Reuse of the same image with different sized displays causes a random resize. #142

Closed xNUTx closed 3 months ago

xNUTx commented 3 months ago

When using the same image source more then once, using a md5 hash of the image itself will cause the same image to be overwritten time and time again if you redo the resize for another screen... resulting in an ever changing image size.

This change fixes that and the resize function replacement ImageOps.fit will speed up the image processing compared to the orignal without sacrificing the quality too much, while preserving the aspect ratios.

xNUTx commented 3 months ago

crap, this included the proxy change...