Commits

Christian Tismer committed 00b7e86

intermediate checkin

Comments (0)

Files changed (3)

tiffany/from-pil-py3/TiffImagePlugin.py

                 stripstart = fp.tell()
                 lis = list(self.i32(data[i:i+4]) for i in range(0, count*4, 4))
                 data = ''.join(self.o32(it + stripstart) for it in lis)
+                # debugging XXX
+                if 1:
+                    for x in lis:
+                        print (stripstart, x)
                 fp.seek(strip_tableofs)
                 fp.write(data)
                 fp.seek(stripstart)

tiffany/monkeypil.py

 Background
 ----------
 
-Tiffany originates in the Didoca project that needs to read
+Tiffany originates in the Pydica project that needs to read
 multi-file Tiff with CCITT G3/G4 encoding and display certain pages
 in Qt (PySide). Qt decodes many formats, but cannot display more than
 the first page and is very pedantic about the Tiff tags. Tiffany solves
     #im = open(im)
 
     with io.open(outfile, 'wb') as imf:
-        for i in range(5):
+        for i in range(3):
             page = altpage
-            while page >= 0:
+            while 0 and page >= 0:
                 im.seek(page)
                 im.save(imf)
+                im.save(imf)
+                im.save(imf)
                 page -= 1
-            page = 0
-            while 0 and page <= altpage:
+            page = 01
+            while page <= altpage:
                 im.seek(page)
                 im.save(imf)
-                page += 1
+                im.save(imf)
+                im.save(imf)
+                page += 1 + 999 ###
                 
 
     # writing to a buffer
     imf = io.BytesIO()
     for i in range(2):
+        break ##!!
         im.seek(altpage)
         im.save(imf)
         im.seek(0)

tiffany/pycon.wpr

+#!wing
+#!version=4.0
+##################################################################
+# Wing IDE project file                                          #
+##################################################################
+[project attributes]
+proj.directory-list = [{'dirloc': loc('.'),
+                        'excludes': (),
+                        'filter': '*',
+                        'include_hidden': False,
+                        'recursive': True,
+                        'watch_for_changes': True}]
+proj.file-type = 'shared'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.