After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632288 - When saving in PNG format, ancillary safe-to-copy chunks are not copied to the new file
When saving in PNG format, ancillary safe-to-copy chunks are not copied to th...
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
git master
Other All
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2010-10-16 09:52 UTC by maelstromeye
Modified: 2018-05-24 12:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test image precocnfigured to have a aaAa chunk. (221 bytes, image/png)
2010-10-16 09:52 UTC, maelstromeye
Details

Description maelstromeye 2010-10-16 09:52:21 UTC
Created attachment 172486 [details]
Test image precocnfigured to have a aaAa chunk. 

According to the PNG specification, chunks that are marked as ancillary and safe-to-copy should be saved into the new file. 

Is there a reason why a chunk with (aaAa) doesn't get transferred to a new PNG file? This is ancillary and safe-to-copy. 

Reference:
http://www.libpng.org/pub/png/spec/1.1/PNG-Structure.html#Chunk-naming-conventions

STR:

# Create some image in GIMP and save it in PNG format. 
# Open the PNG in a binary editor. 
# Go to the end of the file and back 12 bytes (the start of the IEND chunk. It should be 4 zero bytes, IEND then a CRC32. 
# Insert the following binary string: 
#* 0000 0000 6161 4161 381C C1E7 (this equates to a zero length chunk with name aaAa and checksum). 
# Open the file in GIMP.
# Select Save As.
# Save the file as something other than the original file name. 
# Compare the two binary files. 
# Notice that the files are the same except the aaAa chunk we added in a hex editor has now been removed. 

I've attached a preconfigured PNG file that contains the aaAa chunk.
Comment 1 Sven Neumann 2010-10-18 16:35:54 UTC
If you really need this feature, you could add code to the file-png-load procedure that attaches such a chunk as a parasite to the image. And add code to the file-png-save procedure that recognizes this parasite and saves it back to the PNG file.
Comment 2 Joao S. O. Bueno 2016-05-10 21:24:17 UTC
After talking about .ORA format on LGM 2016 BoF it became patent that this is a nice feature: we agreed, without knowledge of the PNG specification in mind, that Open Raster images themselves should have a feature just like this.
Comment 3 GNOME Infrastructure Team 2018-05-24 12:52:47 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/346.