From 7d524629de61f469c15c308b9cf646bba0e2850a Mon Sep 17 00:00:00 2001 From: malenki Date: Fri, 21 Feb 2014 15:19:20 +0100 Subject: [PATCH 1/2] fixing cropgtk.py dropping all EXIF data --- cropgtk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cropgtk.py b/cropgtk.py index b061cbe..c1156b0 100755 --- a/cropgtk.py +++ b/cropgtk.py @@ -270,7 +270,7 @@ def run(self): if drag.rotation == 3: command.extend(['-rotate', '180']) elif drag.rotation == 6: command.extend(['-rotate', '90']) elif drag.rotation == 8: command.extend(['-rotate', '270']) - command.extend(['-crop', cropspec, image_name]) + command.extend(['-copy', 'all','-crop', cropspec, image_name]) target = self.output_name(image_name) if not target: self.log("Skipped %s" % os.path.basename(image_name)) From 36546e3145a3383beeda431d6010c97b64c84d1b Mon Sep 17 00:00:00 2001 From: malenki Date: Fri, 21 Feb 2014 15:20:19 +0100 Subject: [PATCH 2/2] fixing cropgui.py dropping all EXIF data --- cropgui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cropgui.py b/cropgui.py index 3e3114c..121d016 100755 --- a/cropgui.py +++ b/cropgui.py @@ -207,7 +207,7 @@ def set_busy(new_busy=True): b *= scale cropspec = "%dx%d+%d+%d" % (r-l, b-t, l, t) target = base + "-crop" + ext - task.add(['nice', 'jpegtran', '-crop', cropspec, image_name], target) + task.add(['nice', 'jpegtran', '-copy', 'all', '-crop', cropspec, image_name], target) finally: task.done()