Don't leave x.jpg_original files around from ExifTool.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 22 Jun 2016 13:20:23 -0400
changeset 42 701364320c71
parent 41 c009d50119fc
child 43 2acacf5bae24
Don't leave x.jpg_original files around from ExifTool.
archive_imessage.pl
--- a/archive_imessage.pl	Wed Jun 22 12:49:11 2016 -0400
+++ b/archive_imessage.pl	Wed Jun 22 13:20:23 2016 -0400
@@ -204,7 +204,7 @@
     my $orientation = shift;
     my $trash = shift;
     if (defined $orientation) {
-        my $cmdline = "$program_dir/exiftool/exiftool -q -n -Orientation=$orientation '$fname'";
+        my $cmdline = "$program_dir/exiftool/exiftool -overwrite_original_in_place -q -n -Orientation=$orientation '$fname'";
         dbgprint("marking image orientation: $cmdline\n");
         if (system($cmdline) != 0) {
             unlink($fname) if $trash;