#How to scale the image in a picture-elements card

1 messages · Page 1 of 1 (latest)

spare pecan
#

Is it possible to scale the image in a picture-elements card dynamically?

Background, I have a high resolution floorplan. Unfortunately it is not scaled automatically, so I need to scroll on different devices with slower display. This is very annoying and it would be great if the plan whould scale accordinly to the display size.

dawn surge
#

Hi, I'm not sure about picture-elements card but this might be helpful - https://github.com/iva-stolnik/interactive-image-card. This is custom repository and it can be added through HACS. If you set 'size:1000' in card config, it will set image width to 1000px on a large screen and scale appropriately on smaller screens. The card also makes it easier to upload, browse, and manage images within Home Assistant but its main feature is the ability to create interactive areas that can call a service when clicked.

spare pecan
#

@dawn surge thank you for this hint, it looks very promising but unfortunately I am not able to install HACS. May be I missed something.