Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: imageConversion.py

Issue 5406295150559232: wrong icons parameter value in manifest.json for chrome buildtool fix. (Closed)
Patch Set: Use PIL to determine image size Created March 19, 2014, 8:50 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | packagerChrome.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: imageConversion.py
===================================================================
--- a/imageConversion.py
+++ b/imageConversion.py
@@ -133,3 +133,6 @@
f.name = filename
image.save(f)
files[filename] = f.getvalue()
+
+def getImageSize(file):
+ return Image.open(StringIO(file)).size
Wladimir Palant 2014/03/19 12:11:48 I didn't mean to actually put this code into image
saroyanm 2014/03/19 14:54:18 Got it, moved to packager.
« no previous file with comments | « no previous file | packagerChrome.py » ('j') | packagerChrome.py » ('J')

Powered by Google App Engine
This is Rietveld