mirror of
https://github.com/esphome/esphome.git
synced 2025-01-03 19:31:46 +01:00
Fix animation resizing (#4608)
Animation resizing in RGB24 format is causing an error "Image cannot be resized to a bigger size". Other image types do not show the issue, and the only difference is the "image.thumbnail" call. Removed the call and tested; the animation is shown with the desired size.
This commit is contained in:
parent
8d3896172d
commit
74fe135c9c
1 changed files with 0 additions and 2 deletions
|
@ -76,8 +76,6 @@ async def to_code(config):
|
||||||
pos = 0
|
pos = 0
|
||||||
for frameIndex in range(frames):
|
for frameIndex in range(frames):
|
||||||
image.seek(frameIndex)
|
image.seek(frameIndex)
|
||||||
if CONF_RESIZE in config:
|
|
||||||
image.thumbnail(config[CONF_RESIZE])
|
|
||||||
frame = image.convert("RGB")
|
frame = image.convert("RGB")
|
||||||
if CONF_RESIZE in config:
|
if CONF_RESIZE in config:
|
||||||
frame = frame.resize([width, height])
|
frame = frame.resize([width, height])
|
||||||
|
|
Loading…
Reference in a new issue