2023-03-15 - ExifTool 12.58 released

Main Menu

exiftool exit value 1

Started by SulG, July 11, 2012, 09:00:22 PM

Previous topic - Next topic


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

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 ($).