Author Topic: exiftool exit value 1  (Read 1938 times)


  • Newbie
  • *
  • Posts: 3
exiftool exit value 1
« on: July 11, 2012, 09:00:22 PM »
I am newbie with ExifTool. I have it installed on Solaris OS.

I am able to successfully launch the following command on the command prompt.
exiftool -b -PreviewImage IMG_4147.dng > IMG4147prev.jpg

However, programmatically when I execute the same command, exiftool is returning a exit value of 1.
How/Where do I see the logs/details to see why exiftool would be failing in this scenario.


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14896
    • ExifTool Home Page
Re: exiftool exit value 1
« Reply #1 on: July 22, 2012, 07:10:09 AM »
Sorry for the delay in responding.  I was on vacation.

I don't understand why you get an exit value of 1 unless the specified file doesn't exist, or if there was some other serious error.  But in this case, you should get an error message sent to stderr.  Unfortunately there are no additional diagnostics available when doing binary output like this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).