1. pydica
  2. pydica
  3. tiffany

Commits

Christian Tismer  committed dc28099

corrections where PIL is sloppy (submit patches?)

  • Participants
  • Parent commits f9b217a
  • Branches default
  • Tags v0.1, v0.1 internal

Comments (0)

Files changed (1)

File tool/tiff_reader/tiffany/monkeypil.py

View file
             elif tag == STRIPBYTECOUNTS:
                 stripbytecounts = value
             elif tag == 293: # T6Options
-                # hack to enforce type 4
-                # XXX think of a better alternative
-                value = 0x08000000
+                # enforce type 4, see 
+                # http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf
+                ifd.tagtype[tag] = 4 # LONG
             elif isinstance(value, str):
                 value = value.rstrip('\0')
             ifd[tag] = value