diff bin/recompress @ 95:a5324d2cc0eb

Updated documentation.
author Edho Prima Arief <edho@myconan.net>
date Thu, 14 Jul 2011 00:50:23 +0700
parents 9790bc126ea6
children 9be628347dce
line wrap: on
line diff
--- a/bin/recompress	Thu Jul 14 00:49:33 2011 +0700
+++ b/bin/recompress	Thu Jul 14 00:50:23 2011 +0700
@@ -4,11 +4,7 @@
 from PIL import Image
 
 
-# return codes:
-# 0 = ok
-# 1 = error opening file (not an image, not a file, unreadable or whatever)
-# 2 = error saving file (no write permission)
-# 3 = not a png file
+# Raises a generic exception (exception.Exception) if input is not a PNG file.
 def repng(filename):
   im = Image.open(filename)
   if im.format == "PNG":