ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: pixelextreme on May 22, 2011, 09:28:04 AM

Title: Thumbnail creation using stay_open
Post by: pixelextreme on May 22, 2011, 09:28:04 AM
The following ARGUMENT File does not produce the thumbnail. Instead the binary output appears on stdout. If I run the same parameters from the command line the proper thumbnail is created. I appear to have a shell stdout redirection problem when using stay_open mode.

ARGUMENT FILE
-b
-ThumbnailImage
V:\tmp\IMG_1986.JPG
>
V:\tmp\thumbnail\IMG_1986.JPG
-execute


COMMAND LINE
exiftool -b -ThumbnailImage C:\tmp\IMG_1986.JPG > C:\tmp\thumbnail\IMG_1986.JPG
Title: Re: Thumbnail creation using stay_open
Post by: Phil Harvey on May 22, 2011, 05:00:22 PM
The redirection is a function of the shell.  The argument file does not use the shell.  To send the console output to a file from arguments in an argfile, use the -w option like this:

-b
-thumbnailimage
-w
v:/tmp/thumbnail/%f.JPG
...


- Phil