Changes between Version 5 and Version 6 of CookBookValidateImageSize
- Timestamp:
- Feb 24, 2006, 1:44:11 PM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CookBookValidateImageSize
v5 v6 12 12 import StringIO 13 13 14 def isValid eSize(field_data, all_data):14 def isValidSize(field_data, all_data): 15 15 im = Image.open(StringIO.StringIO(field_data["content"])) 16 16 if im.size != (100,100):