diff --git a/src/plugins/gramplet/EditExifMetadata.py b/src/plugins/gramplet/EditExifMetadata.py index 1d25c5925..7c3e04fe4 100644 --- a/src/plugins/gramplet/EditExifMetadata.py +++ b/src/plugins/gramplet/EditExifMetadata.py @@ -28,7 +28,6 @@ import os, sys from datetime import datetime, date import calendar, time - # abilty to escape certain characters from output... from xml.sax.saxutils import escape as _html_escape @@ -103,8 +102,8 @@ if (software_version and (software_version < Min_VERSION)): # # The programs are ImageMagick, and jhead # * ImageMagick -- Convert and Delete all Exif metadata... -# * jhead -- re-initialize a jpeg image... -# * del -- delete old files from the convert command +# * jhead -- re-initialize a jpeg, and other features... +# * del/ rm -- delete old files from the convert command... #******************************************************************** # Windows 32bit systems system_platform = os.sys.platform @@ -123,6 +122,17 @@ else: _JHEAD_FOUND = "jhead" if Utils.search_for("jhead") else False _DEL_FOUND = "del" if Utils.search_for("del") else False +# if external programs are not found, let the user know about the missing functionality? +if not _MAGICK_FOUND: + print(_("ImageMagick's convert program was not found on this computer.\n" + "You may download it from here: %s...") % ( + "http://www.imagemagick.org/script/index.php")) + +if not _JHEAD_FOUND: + print(_("Jhead program was not found on this computer.\n" + "You may download it from: %s...") % ( + "http://www.sentex.net/~mwandel/jhead/")) + # ----------------------------------------------------------------------------- # Constants # -----------------------------------------------------------------------------