Index: /WAeUP_SRP/trunk/Students.py
===================================================================
--- /WAeUP_SRP/trunk/Students.py	(revision 973)
+++ /WAeUP_SRP/trunk/Students.py	(revision 974)
@@ -432,11 +432,14 @@
             if os.path.exists(picture):
                 file = open(picture)
-                img = PIL.Image.open(file)
-                img.thumbnail((150,200),
-                              resample=PIL.Image.ANTIALIAS)
-                # We now need a buffer to write to. It can't be the same
-                # as the inbuffer as the PNG writer will write over itself.
-                outfile = StringIO()
-                img.save(outfile, format=img.format)
+                if False:
+                    img = PIL.Image.open(file)
+                    img.thumbnail((150,200),
+                                  resample=PIL.Image.ANTIALIAS)
+                    # We now need a buffer to write to. It can't be the same
+                    # as the inbuffer as the PNG writer will write over itself.
+                    outfile = StringIO()
+                    img.save(outfile, format=img.format)
+                else:
+                    outfile = file.read()
                 app_doc.manage_addFile('passport',
                                        file=outfile,
