Index: packagerChrome.py |
diff --git a/packagerChrome.py b/packagerChrome.py |
index d75203d17b9e63262e69f44e5112cfc729005d8d..bf6f5f962f3c75b270e25d2438856ff2ed095ff3 100644 |
--- a/packagerChrome.py |
+++ b/packagerChrome.py |
@@ -43,13 +43,9 @@ def processFile(path, data, params): |
def makeIcons(files, filenames): |
- try: |
- from PIL import Image |
- except ImportError: |
- import Image |
icons = {} |
for filename in filenames: |
- width, height = Image.open(StringIO(files[filename])).size |
+ width, height = struct.unpack('>ii', files[filename][16:24]) |
if(width != height): |
print >>sys.stderr, 'Warning: %s size is %ix%i, icon should be square' % (filename, width, height) |
icons[width] = filename |