Closed JeroenTuinstra closed 1 year ago
When replaced by a JPG image it works fine. So it seems that rendering of PNG images is broken.
image:
- file: "images/restafval2.jpg"
id: Lrestafvalpic
This the actual JPG picture:
And the result is:
I also have the same problem with an OLED display since the update to v2023.2.4.
@JeroenTuinstra @jdituicha I was having the same issue, but seems like changing the image type from "TRANSPARENT_BINARY" to "TRANSPARENT_IMAGE" fixes the problem for me (also using PNGs) I still have to test some more, but this looks promising; you might want to check that as well
This seems to have been introduced by https://github.com/esphome/esphome/pull/4044 @nielsnl68 this should probably have been marked as breaking change ;-)
@guillempages tanks you for the references. "TRANSPARENT_BINARY" to "TRANSPARENT_IMAGE" is my solution. : )
@jdituicha, think of this as a temporary solution/workaround though; once my PR https://github.com/esphome/esphome/pull/4600 gets merged, the TRANSPARENT_IMAGE type will be removed again.
The problem
Since version 2023.2.3 (not sure it started there, because I only update my firmware when necessary), images are rendered as black squares. These are PNG with a transparency layer. Before they would render correctly.
So the image is loaded as such:
Then it is called upon like such in the display section:
This generates a black square. This is the actual image used: This is the result:
Which version of ESPHome has the issue?
2023.2.3
What type of installation are you using?
Docker
Which version of Home Assistant has the issue?
2023.2.3
What platform are you using?
ESP32
Board
Firebeetle32
Component causing the issue
display/it.image
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response