Basic issue: creating JpgFromRAW via -o option

Started by lokatz, June 04, 2020, 04:42:11 PM

Previous topic - Next topic

lokatz

I am using Exiftool successfully as an external resource in a C# program to read metadata and convert certain image formats.  However, for speed reasons, I would like to use the -StayOpen option, where I am running into a basic issue where I seem to have a misunderstanding  of how Exiftool works.

So far, I've been using a command like this one:

"C:\ExiftoolDir\exiftool.exe" -b -JpgFromRaw "C:\Temp\Bird.NEF" > "C:\ProgramData\MyImages\Bird.jpg"

to call Exiftool as an external process under Windows 10.  The '>' is a shell command telling windows to take the Exiftool output and write it as a JPG file.  Works great.  (The quotation marks are required since all paths could include blanks.) 

However, in order to use the -StayOpen option, I can no longer use this shell command since everything now needs to be run through an ArgFile.  From reading the Exiftool documentation, I got the impression that calling

"C:\ExiftoolDir\exiftool.exe" -b -JpgFromRaw "C:\Temp\Bird.NEF" -o "C:\ProgramData\MyImages\Bird.jpg"

would achieve the same thing - but it doesn't:  the Process exits unsuccessfully when changing my code to this. 

What am I missing?  Am I misinterpreting the -o command here, or do I need to look for an error in the logic of how the process gets executed in my program?  Will appreciate any hints you can give me.  Thanks.

StarGeek

The -o (Outfile) option writes changes made to a file to a different directory.  Basically used to copy/move a file while making edits.

In order to extract data and write it out, you want to use the -w (textout) option.  See this post.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

lokatz