[FFmpeg-trac] #11424(ffmpeg:new): Colors get distorted when converting from an animated PNG into an animated GIF
FFmpeg
trac at avcodec.org
Mon Jan 20 02:13:07 EET 2025
#11424: Colors get distorted when converting from an animated PNG into an animated
GIF
-------------------------------------+----------------------------------
Reporter: idest | Owner: (none)
Type: defect | Status: new
Priority: normal | Component: ffmpeg
Version: unspecified | Resolution:
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+----------------------------------
Comment (by Leo Izen):
This is caused by the automatic converstion from rgb24 to bgr8, which is
the default for the gif encoder. bgr8 cannot represent the colors
correctly. Use this instead:
```
ffmpeg -i spiral.png -vf 'split[v],palettegen,[v]paletteuse' spiral.gif
```
The original picture only has 60 colors so this shouldn't create any loss.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11424#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list