Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The aspect_ratio variable truncates the image #23580

Open
3 of 4 tasks
WRoss7 opened this issue Jan 4, 2025 · 0 comments
Open
3 of 4 tasks

The aspect_ratio variable truncates the image #23580

WRoss7 opened this issue Jan 4, 2025 · 0 comments

Comments

@WRoss7
Copy link

WRoss7 commented Jan 4, 2025

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

If I live view a camera with native 16:9 resolution in a picture entity card, the image comes out vertically stretched.
Then I enter the variable aspect_ratio: “16:9”, and I see that the image is reproportioned correctly, but looking closer I notice that actually the camera image is truncated at the bottom.
In other words, it is the card that is reproportioned, not the camera image.

Code example:
type: picture-entity
entity: camera.telecamera_portico_profile001
camera_view: live
aspect_ratio: "16:9"
show_state: false
show_name: false

Describe the behavior you expected

Since aspect ratio is a parameter that relates to the image (or video), I expect the parameter to act on the card by also reproportioning the image, which will then not be deformed.
In theory this should also avoid unnecessary recalculations, the image being displayed as is.

Steps to reproduce the issue

...

What version of Home Assistant Core has the issue?

2024.12.5

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Chrome 131.0.6778.205

Which operating system are you using to run this browser?

Windows 10

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant