This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: PIL does not support iTXt PNG chunks [patch]
Type: enhancement Stage: resolved
Components: Installation Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: ezio.melotti, sladen
Priority: normal Keywords:

Created on 2011-12-01 06:33 by sladen, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
chunk_iTXt.py sladen, 2011-12-01 06:33
Messages (4)
msg148706 - (view) Author: Paul Sladen (sladen) Date: 2011-12-01 06:33
The Python Imaging Library does not support handling of UTF-8 'iTXt' key:value chunks in PNG files:

  http://www.w3.org/TR/PNG/#11iTXt

Such support is necessary for successful extraction of key:value pairs of UTF-8 encoded data, stored in an PNG 'iTXt' comment chunk.

The following example file (from British GCHQ) demonstrates such a record in a PNG file.  Based on this evidence, it is highly likely that GCHQ hide all of their important secrets using this kind of steganography, and likely necessary that spies from the rest of the world are requiring similar access to GCHQ secrets.  Inclusion of a working chunk_iTXt() PIL/PNG support function will enable more harmonious and effective eavesdropping.  Example image:

  http://www.canyoucrackit.co.uk/images/cyber.png

(The attached .py file is not a directly apply-able patch, but contains a working implementation for chunk_iTXt() and a demonstrative test function for inserting it).
msg148707 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-12-01 06:41
You should report this to the PIL bug tracker.  PIL is not part of the Python standard library.
msg148708 - (view) Author: Paul Sladen (sladen) Date: 2011-12-01 06:44
Thank you Ezio.  I could not see a separate bug tracker listed on:

  http://www.pythonware.com/products/pil/

could you help me by providing a link to where it /should/ be filed correctly for PIL itself.
msg148709 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2011-12-01 06:52
You could try submitting your patch to the image-sig ML (http://mail.python.org/mailman/listinfo/image-sig).
History
Date User Action Args
2022-04-11 14:57:24adminsetgithub: 57723
2011-12-01 06:52:49ezio.melottisetmessages: + msg148709
2011-12-01 06:44:57sladensetmessages: + msg148708
2011-12-01 06:41:14ezio.melottisetstatus: open -> closed

nosy: + ezio.melotti
messages: + msg148707

resolution: not a bug
stage: resolved
2011-12-01 06:33:07sladencreate