Added more code to the convert2Jpeg function.
svn: r17304
This commit is contained in:
parent
743806ee13
commit
e6d6fd03e3
@ -123,8 +123,7 @@ elif system_platform == "Linux2":
|
|||||||
|
|
||||||
# Windows 64bit systems
|
# Windows 64bit systems
|
||||||
else:
|
else:
|
||||||
_MAGICK_FOUND = Utils.search_for("conve
|
_MAGICK_FOUND = Utils.search_for("convert")
|
||||||
rt")
|
|
||||||
_JHEAD_FOUND = Utils.search_for("jhead")
|
_JHEAD_FOUND = Utils.search_for("jhead")
|
||||||
_DEL_FOUND = Utils.search_for("del")
|
_DEL_FOUND = Utils.search_for("del")
|
||||||
__del_command = "del"
|
__del_command = "del"
|
||||||
@ -818,11 +817,16 @@ class EditExifMetadata(Gramplet):
|
|||||||
|
|
||||||
change = subprocess.check_call( ["convert", self.image_path,
|
change = subprocess.check_call( ["convert", self.image_path,
|
||||||
os.path.join(filepath, basename + newextension) ] )
|
os.path.join(filepath, basename + newextension) ] )
|
||||||
|
|
||||||
if str(change):
|
if str(change):
|
||||||
self.disable_button(["Convert"])
|
self.disable_button(["Convert"])
|
||||||
|
|
||||||
if _DEL_FOUND:
|
if _DEL_FOUND:
|
||||||
deleted = subprocess.check_call( [_del_command, self.image_path] )
|
if _del_command is not "rm":
|
||||||
|
deleted = subprocess.check_call( [_del_command, self.image_path] )
|
||||||
|
else:
|
||||||
|
deleted = subprocess.check_call( [_del_command, "-rf", self.image_path] )
|
||||||
|
|
||||||
if str(deleted):
|
if str(deleted):
|
||||||
self.exif_widgets["Message:Area"].set_text(_("Original image has "
|
self.exif_widgets["Message:Area"].set_text(_("Original image has "
|
||||||
"been deleted!"))
|
"been deleted!"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user