Opened 2 years ago

Closed 20 months ago

Last modified 20 months ago

#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 MasterQuestionable)


Change History (5)

comment:1 by MasterQuestionable, 2 years ago

Description: modified (diff)

͏    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")

Last edited 20 months ago by MasterQuestionable (previous) (diff)

comment:2 by Leo Izen, 20 months ago

Resolution: invalid
Status: newclosed

comment:3 by MasterQuestionable, 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 Leo Izen, 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.

comment:5 by MasterQuestionable, 20 months ago

͏    Blindly following without consideration becomes dogmatism.

Note: See TracTickets for help on using tickets.