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)) 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()