#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)
follow-up: 2 comment:1 by , 7 weeks ago
Cc: | added |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
comment:2 by , 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?
follow-up: 4 comment:3 by , 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.
comment:4 by , 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 , 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"`
comment:6 by , 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.
͏ 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)