I have raised a draft PR to update the image, online_image and animation components and would like as much testing as possible before it’s merged. The PR can be found here:
And the changes include:
A previous PR changed the transparency type for some images from chroma-key (where a specific color flags transparency) to alpha-channel (where an additional 8 bits per pixel encodes the opacity value.)
Now there is a choice available for which type of transparency is used. Full list of changes:
use_transparency has options none, chroma_key and alpha_channel
Image type is a required field - the previous default was BINARY which is often not what is expected;
The RGBA and TRANSPARENT_BINARY types are removed, instead use RGB or BINARY with an appropriate setting for use_transparency
online_image and animation code and schemas are streamlined and re-use image code where possible.
The image code has been extensively refactored to facilitate maintenance.
Testing
This PR needs testing before release since it contains breaking changes. Please test by adding this to your yaml: