xmp to iptc...easily ???

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
valdoes

xmp to iptc...easily ???

Post by valdoes »

I did a mistake writing keywords in photoshop and now these keywords are shown only in xmp field, but not in the iptc field.

So my question is: How to copy or move these keywords from xmp so that they will also be seen as iptc ?
Guest

Post by Guest »

Any news about this ?
Because I'm looking also to put XMP data to IPTC.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Anonymous wrote:Any news about this ?
Because I'm looking also to put XMP data to IPTC.
Ok, i'll try to add such function in a future version
Pierre.
Guest

Post by Guest »

It's like that XnView ?
You just have to ask and function is add ?

I like this ! :)

Thanks for that !
Guest

Post by Guest »

Well, while there, maybe you'd like to make it a two way thing? Copy from IPTC to XMP, and XMP to IPTC?

Maybe I've missed something while looking through the program, but I've only seen options regarding comments/descriptions, and nothing for the keywords..

Thanks!
Luka
pilpil
Posts: 3
Joined: Sat Nov 10, 2007 12:09 pm

Post by pilpil »

Pierre, have you an idea if you want to integrate that functionality (Xmp to IPTC), and if yes when ?

Because I really need this functionality...

I have found something who can do that (ExifTool), I think, but it seems not simple at all to use it and I don't success until now :(

So if you don't want to do it soon (and I can understand it, you can have other priorities !), I will continue to try using ExifTool. But if you want to do it soon, I will wait :D
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

Hello,
You can use exiftool.exe (available as a stand-alone Windows executable)
http://www.sno.phy.queensu.ca/~phil/exi ... l-7.00.zip
(Then Rename "exiftool(-k).exe" to "exiftool.exe").
And these 2 extra files in the same directory (iptc2xmp.args and xmp2iptc.args, here).
http://www.sno.phy.queensu.ca/~phil/exi ... .00.tar.gz

convert iptc to xmp for a.jpg file :
exiftool -tagsFromFile a.jpg -@ iptc2xmp.args -iptc:all= a.jpg

convert xmp to iptc:
exiftool -tagsFromFile a.jpg -@ xmp2iptc.args -xmp:all= a.jpg

iptc and xmp (créated from iptc):
exiftool -tagsFromFile a.jpg -@ iptc2xmp.args -iptc:= a.jpg

For help:
http://www.sno.phy.queensu.ca/~phil/exi ... l_pod.html
http://www.sno.phy.queensu.ca/~phil/exiftool/
-----------------------------------------------------------------
Pierre
It will be nice also to have a link in XnView to show exiftool Composite data of a photo (like the "i" hotkey - information):

exiftool -a -u -g1 -ext .JPG * -w .txt "G:\dir\photo\a.jpg"

.....
---- Composite ----
Circle Of Confusion : 0.005 mm
Focal Length : 16.7mm (35mm equivalent: 99.1mm)
Scale Factor To 35mm Equivalent : 5.9
Hyperfocal Distance : 16.68 m
Light Value : 8.4
Aperture : 3.3
Shutter Speed : 1/125
GPS Date/Time : 2007:11:08 16:49:15
GPS Position : 47 deg 13' 35.26" N, 1 deg 33' 36.66" W
http://www.sno.phy.queensu.ca/~phil/exi ... onfig.html
XnViewMP Linux X64 - Debian - X64
pilpil
Posts: 3
Joined: Sat Nov 10, 2007 12:09 pm

Post by pilpil »

Thanks for the help on exiftool !

I have add -P and -overwrite_original option, and I have changed the xmp2iptc file to have only keywords copied from XMP data.
It seems it works nice for one file :)

Code: Select all

exiftool -tagsFromFile a.jpg -@ myxmp2iptc.args -P -overwrite_original a.jpg
myxmp2iptc.args :

Code: Select all

-XMP-dc:Subject > IPTC:Keywords
But how can I use the recursive command (-r) in this command to have all my image changed in my big "My Pictures" directory ?

And how can I be sure I don't lost any iptc or xmp information in my files ?
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

pilpil wrote: ....
But how can I use the recursive command (-r) in this command to have all my image changed in my big "My Pictures" directory ?
And how can I be sure I don't lost any iptc or xmp information in my files ?
I do not know, maybe ask on exiftool forum
or
dir /B /ON *.jpg > list.txt
copy the list on excel (or open office)in a1, then
in b1: =concatener("exiftool -tagsFromFile";a1;" -@ iptc2xmp.args -iptc:all= ";a1)
copy this formule to the and of the excel list,
and copy the result to a batch file (*.bat) to have:
exiftool -tagsFromFile xxx000.jpg -@ iptc2xmp.args -iptc:all= xxx000.jpg
exiftool -tagsFromFile xxx001.jpg -@ iptc2xmp.args -iptc:all= xxx001.jpg
...
exiftool -tagsFromFile xxx200.jpg -@ iptc2xmp.args -iptc:all= xxx200.jpg
then run the batch and wait....
(do a test before with some *.jpg files)
XnViewMP Linux X64 - Debian - X64
pilpil
Posts: 3
Joined: Sat Nov 10, 2007 12:09 pm

Post by pilpil »

oops66 wrote:
pilpil wrote: ....
But how can I use the recursive command (-r) in this command to have all my image changed in my big "My Pictures" directory ?
And how can I be sure I don't lost any iptc or xmp information in my files ?
I do not know, maybe ask on exiftool forum
or
dir /B /ON *.jpg > list.txt...
Ok thanks, batch file is a good idea.
And I was not aware there was a exiftool forum, I wil try this also.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

oops66 wrote: It will be nice also to have a link in XnView to show exiftool Composite data of a photo (like the "i" hotkey - information):

exiftool -a -u -g1 -ext .JPG * -w .txt "G:\dir\photo\a.jpg"
Perhaps it would be good to have a panel with exiftool output?
Pierre.
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

xnview wrote: Perhaps it would be good to have a panel with exiftool output?
Yes, it's a good idea.
XnViewMP Linux X64 - Debian - X64
Post Reply