Picasa, Gallery Exif and ITPC comments and data
January 31, 2008 6:00 pmIf you want to export photographs from Picasa to Gallery or Flickr, you might want to populate the comment, copyright and caption data in the photo. This might get a bit technical, but here goes…
1. Download exiv2-0.13-win.zip
2. Unzip and place the exiv2 in the directory where your .jpg pics are located
3. Open notepad and type the following
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
FOR /R %%f IN (*.jpg) do (
set FILE=!FILE!%%f
set SHFILE=!SHFILE!%%~nf
echo "SHFILE IS " !SHFILE!
echo Processing "File" !FILE!
exiv2 -k -M"set Iptc.Application2.Caption !SHFILE!" -m copyright.txt "!FILE!"
set FILE=
set SHFILE=
)
4. Save this file as nmtocap.bat and place it in the same directory as the jpgs and the exiv2.exe
5. Double click the nmtocap.bat file. That is it. Now, open Picasa and you will observe that the captions are modified.
NOTE:
1) Omiting -k will change the timestamp on your files
2) If you want to see the result of the modification, instead of Step 5, open a cmd prompt and navigate to the directory where the pics are stored. Type in “nmtocap.bat” at the command prompt and in copyright.txt, you put
set Iptc.Application2.Copyright "My CopyRight Notice"
THEN once all that is done, if you want to populate the JPEG comment section with a longer copyright, you browse thumbnails in Irfanview (with the irfanview plugins installed), select all, go to JPEG lossless operations, insert comment, and off you go!
Categories: tech stuff
No Comments »









