Opened 7 weeks ago

Closed 7 weeks ago

Last modified 6 weeks ago

#11443 closed defect (duplicate)

PNG and APNG Incorrect Colors Because of Tags

Reported by: Jay123210599 Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: png apng tags Tag
Cc: MasterQuestionable Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I heard that if you add colorimetry flags to videos without them, or for videos with colorimetry flags already present, if you make PNG files out of it, the ffmpeg PNGs will display incorrect colors in many programs, including browsers because of gAMA and cHRM tag issues. Is that true, and if so, why? How do I fix it?

Change History (6)

comment:1 by MasterQuestionable, 7 weeks ago

Cc: MasterQuestionable added
Resolution: duplicate
Status: newclosed

͏    Havoc unfixable:
͏    https://github.com/libjxl/libjxl/issues/4056#issuecomment-2607405171

͏    ExifTool may be used to strip the various tags.
͏    Nevertheless, it's recommended to use WebP Lossless instead of PNG. (superior compression)

in reply to:  1 comment:2 by Jay123210599, 7 weeks ago

Replying to MasterQuestionable:

͏    Havoc unfixable:
͏    https://github.com/libjxl/libjxl/issues/4056#issuecomment-2607405171

͏    ExifTool may be used to strip the various tags.
͏    Nevertheless, it's recommended to use WebP Lossless instead of PNG. (superior compression)

What do you mean? It can't be fixed? Why?

comment:3 by MasterQuestionable, 7 weeks ago

͏    Trace the links for the technical background. (the unfixable presentation havoc)
͏    But to somewhat mitigate:
͏    Probably fixing #11002 (by not generating alike PNG meta) could help.

in reply to:  3 comment:4 by Jay123210599, 7 weeks ago

Replying to MasterQuestionable:

͏    Trace the links for the technical background. (the unfixable presentation havoc)
͏    But to somewhat mitigate:
͏    Probably fixing #11002 (by not generating alike PNG meta) could help.

Wait, what's havoc, and why does it cause PNG and APNG to show incorrect colors because of tag issues? Why isn't it fixable?

comment:5 by MasterQuestionable, 6 weeks ago

͏    Some ill designs in the past standards unjustifiably sophisticated the presentation, and made which tricky unfixable.

͏    ----

͏    https://trac.ffmpeg.org/ticket/11002#comment:11
͏    `exiftool "-Gamma=200" "0.png" -o "1.png"`

Last edited 6 weeks ago by MasterQuestionable (previous) (diff)

in reply to:  description comment:6 by Leo Izen, 6 weeks ago

Replying to Jay123210599:

I heard that if you add colorimetry flags to videos without them, or for videos with colorimetry flags already present, if you make PNG files out of it, the ffmpeg PNGs will display incorrect colors in many programs, including browsers because of gAMA and cHRM tag issues. Is that true, and if so, why? How do I fix it?

This is not true, so there's no need to fix it. If you have an actual PNG that you believe is displaying incorrectly in a browser that is generated by FFmpeg then you should open a separate issue. Preferably you should only open issues if you have observed the bug, rather than "have heard" about it.

Note: See TracTickets for help on using tickets.