Only in postr-0.12.4/src: AboutDialog.pyc
Only in postr-0.12.4/src: AuthenticationDialog.pyc
Only in postr-0.12.4/src: DummyUnique.pyc
Only in postr-0.12.4/src: ErrorDialog.pyc
Only in postr-0.12.4/src: EXIF.pyc
Only in postr-0.12.4/src: flickrest.pyc
Only in postr-0.12.4/src: GroupSelector.pyc
Only in postr-0.12.4/src: ImageList.pyc
Only in postr-0.12.4/src: ImageStore.pyc
Only in postr-0.12.4/src: __init__.pyc
Only in postr-0.12.4/src: iptcinfo.pyc
Only in postr-0.12.4/src: pexif.py
diff -ur postr-0.12.4_orig/src/postr.py postr-0.12.4/src/postr.py
--- postr-0.12.4_orig/src/postr.py	2009-11-05 03:26:54.000000000 +0200
+++ postr-0.12.4/src/postr.py	2010-02-02 18:28:23.000000000 +0200
@@ -613,6 +613,7 @@
         
         # Rotate the preview if required.  We don't need to manipulate the
         # original data as Flickr will do that for us.
+        # This isn't always the case. You have to enable auto-rotation. My account which is 4+ years old had it turned off!
         if "Image Orientation" in exif:
             rotation = exif["Image Orientation"].values[0]
             if rotation == ROTATED_180:
@@ -711,6 +712,9 @@
                             # in files
                             self.add_image_filename (os.path.join(root, f))
                 else:
+                    d = ErrorDialog(self.window)
+                    d.set_from_string("Unhandled file %s (Symlinks not yet supported)" % filename)
+                    d.show_all()
                     print "Unhandled file %s" % filename
                     
         else:
@@ -819,6 +823,21 @@
             safety = None
 
         self.update_progress(filename, title, thumb)
+
+        resize_it = True
+        resize_constraint = 1200, 1200
+
+        
+        if resize_it:
+            self.update_progress(filename + ' (resizing)', title, thumb)
+            import Image
+            img = Image.open(filename)
+            img.thumbnail(resize_constraint,Image.ANTIALIAS)
+            resized_filename = '/tmp/' + os.path.basename(filename) + '_resized.jpg'
+            img.save(resized_filename)
+            filename = resized_filename
+           
+        self.update_progress(filename, title + 'foo', thumb)
         self.upload_index += 1
         self.current_upload_it = it
         
@@ -827,6 +846,10 @@
                                    title=title, desc=desc,
                                    tags=tags, search_hidden=not visible, safety=safety,
                                    is_public=is_public, is_family=is_family, is_friend=is_friend)
+                                   
+        if resize_it:
+            os.remove(resized_filename)
+        
         elif pixbuf:
             # This isn't very nice, but might be the best way
             data = []
Only in postr-0.12.4/src: postr.pyc
Only in postr-0.12.4/src: PrivacyCombo.pyc
Only in postr-0.12.4/src: ProgressDialog.pyc
Only in postr-0.12.4/src: proxyclient.pyc
Only in postr-0.12.4/src: SafetyCombo.pyc
Only in postr-0.12.4/src: StatusBar.pyc
Only in postr-0.12.4/src: util.pyc
Only in postr-0.12.4/src: version.pyc
