[issue13514] PIL does not support iTXt PNG chunks [patch]

Paul Sladen report at bugs.python.org
Thu Dec 1 07:33:08 CET 2011


New submission from Paul Sladen <python at paul.sladen.org>:

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).

----------
components: Installation
files: chunk_iTXt.py
messages: 148706
nosy: sladen
priority: normal
severity: normal
status: open
title: PIL does not support iTXt PNG chunks [patch]
type: feature request
Added file: http://bugs.python.org/file23826/chunk_iTXt.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13514>
_______________________________________


More information about the Python-bugs-list mailing list