#10920 closed enhancement (invalid)
"paletteuse" keeps unused colors for PNG unnecessarily
| Reported by: | MasterQuestionable | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | avfilter |
| Version: | unspecified | Keywords: | paletteuse |
| Cc: | MasterQuestionable | Blocked By: | |
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description (last modified by )
Change History (5)
comment:1 by , 2 years ago
| Description: | modified (diff) |
|---|
comment:2 by , 20 months ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:3 by , 20 months ago
| Description: | modified (diff) |
|---|
͏ Have you tried `zopflipng`?
͏ The palette can be smaller than 256. (and the difference is not dummy)
comment:4 by , 20 months ago
From the PNG specification section on PLTE chunk:
There is no requirement that the palette entries all be used by the image, nor that they all be different.
https://www.w3.org/TR/png/#11PLTE
FFmpeg is not a PNG optimizer.
Note:
See TracTickets
for help on using tickets.



͏ Unsure for other formats.
͏ But for PNG, it's unnecessary.
͏ Tested with `-lavfi "paletteuse=dither=none"`.
͏ See also:
͏ https://trac.ffmpeg.org/query?reporter=MasterQuestionable&time=2024-03-20&summary=~palette&col=id&col=type&col=summary&col=component&col=keywords&col=reporter&col=status&col=resolution&col=time&col=changetime&order=changetime&desc=1
͏ (my recent posts on "palettegen"/"paletteuse")