Thumbnail creation using stay_open

Started by pixelextreme, May 22, 2011, 09:28:04 AM

Previous topic - Next topic

pixelextreme

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

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).