[kupfer] plugin.image: Preserve all JPEG metadata when Rotating
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.image: Preserve all JPEG metadata when Rotating
- Date: Mon, 28 Sep 2009 11:58:30 +0000 (UTC)
commit 984b394b49b91eba17b1ca5d4b3d80ba7b819c0a
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sun Sep 27 16:18:33 2009 +0200
plugin.image: Preserve all JPEG metadata when Rotating
Pass jpegtran '-copy all', otherwise even normal EXIF data will be
left behind in the original.
kupfer/plugin/image.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/image.py b/kupfer/plugin/image.py
index ef716ec..2a4ba8c 100644
--- a/kupfer/plugin/image.py
+++ b/kupfer/plugin/image.py
@@ -92,7 +92,8 @@ class RotateBase (Action):
head, ext = os_path.splitext(os_path.basename(fpath))
filename = "%s_%s%s" % (head, self.rotation, ext)
dpath = utils.get_destpath_in_directory(dirname, filename)
- cmdline = "jpegtran -rotate '%s' -outfile '%s' '%s'" % (self.rotation, dpath, fpath)
+ cmdline = ("jpegtran -copy all -rotate '%s' -outfile '%s' '%s'" %
+ (self.rotation, dpath, fpath))
utils.launch_commandline(cmdline)
return FileLeaf(dpath)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]