Using ExifTools to convert charsets via batch

Started by raggast, April 11, 2011, 05:02:15 AM

Previous topic - Next topic

raggast

Hello,

I am trying to use ExifTool to convert the charset of files with IPTC information tagged by Adobe Photoshop CS5 in Unicode (UTF-8) to ISO 8851-1 (Latin).

I checked the FAQ where in point 10 it says that this should be easy.

So I did (in Windows 7):
1. created a folder including
    - exiftool(-k).exe
    - a new batch-file called exiftool(-k).bat
    - myimage.jpg

2. In the batch-file I entered
     exiftool -tagsfromfile @ -iptc:all -codedcharacterset= (I removed the "a.jpg" since my file is named differently)

3. Then I dragged my image on the .bat-file, the black screen pops up shortly, closes and nothing seems to have changed, not even the "date changed" information on the image file so I assume that nothing happened to the file.

4. I then tried to rename the exe and bat to exiftool.exe and exiftool.bat, but nothing changed either.

Please, what did I do wrong?

Thanks a lot in advance.

raggast

I tested a bit and found out:

When I enter
exiftool.exe -tagsfromfile @ -iptc:all -codedcharacterset= myimage.jpg in the Windows command line, it WORKS.

BUT: How can I create the batch file to make this an automated action when I drag and drop several files on the .bat-file?

Thanks in advance.

Phil Harvey

Add %* to the command line for use in a Windows .bat file.  This represents the arguments passed to the batch file (ie. the files/folders you drop).

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

raggast