Copy metadata should be enabled by default if pyexiv2 is installed
Otherwise metadata such as image orientation gets lost.
Whiteboard
$ bzr commit -m "enable save metadata by default if pyexiv2 is installed"
Committing to: /home/stani/
modified phatch/app.py
modified phatch/
Committed revision 639.
$ bzr diff -r-2
=== modified file 'phatch/app.py'
--- phatch/app.py 2009-05-25 17:41:29 +0000
+++ phatch/app.py 2009-06-04 17:42:02 +0000
@@ -19,6 +19,7 @@
import os, optparse, sys, urllib
from data.info import INFO
from core.config import load_locale
+from core.pil import exif
VERSION = "%(name)s %(version)s"%INFO
@@ -78,7 +79,7 @@
help = _("Specify locale language (for example en or en_GB)"))
parser.
dest = "save_metadata",
- default = False,
+ default = bool(exif),
help = _("Save metadata (requires exif & iptc plugin)"))
parser.
dest = "image_inspector",
=== modified file 'phatch/
--- phatch/
+++ phatch/
@@ -2,7 +2,6 @@
import ct
def create_
- from pil import exif
settings = {
@@ -11,7 +10,7 @@
'no_save' : False,
- 'save_metadata' : bool(exif),
+ 'save_metadata' : False, #defined in app.py
#console
'console' : False,