Skip to content

Commit

Permalink
Sometimes exiftool writes out warnings to stderr, filter those.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 21, 2016
1 parent af27ee9 commit 608d1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive_imessage.pl
Expand Up @@ -190,7 +190,7 @@ sub slurp_archived_file {

sub get_image_orientation {
my $fname = shift;
my $cmdline = "$program_dir/exiftool/exiftool -n -Orientation '$fname'";
my $cmdline = "$program_dir/exiftool/exiftool -n -Orientation '$fname' 2>/dev/null";
my $orientation = `$cmdline`;
fail("exiftool failed ('$cmdline')") if ($? != 0);
chomp($orientation);
Expand Down

0 comments on commit 608d1a2

Please sign in to comment.