ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: raggast on April 11, 2011, 05:02:15 AM

Title: Using ExifTools to convert charsets via batch
Post by: raggast on April 11, 2011, 05:02:15 AM
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.
Title: Re: Using ExifTools to convert charsets via batch
Post by: raggast on April 11, 2011, 05:09:21 AM
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.
Title: Re: Using ExifTools to convert charsets via batch
Post by: Phil Harvey on April 11, 2011, 07:24:00 AM
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
Title: Re: Using ExifTools to convert charsets via batch
Post by: raggast on April 11, 2011, 07:56:55 AM
Thanks, works like a charm now.