IPTC processing with NConvert?

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

Post Reply
nightflyer
Posts: 98
Joined: Tue Sep 26, 2006 7:41 am

IPTC processing with NConvert?

Post by nightflyer »

Please add possibility to read/set IPTC fields.
Something like:
-iptcread caption dog.jpg
prints "This is my dog"
-iptcwrite special_instruction "apply sharpening and crop" dog.jpg
sets the field
-iptcclear copyright *.jpg
clears field

An option can be read options from file, like:
-iptcbatch batch_file.cmd
And batch_file.cmd contains lines like:
read caption dog.jpg
write special_instruction "apply sharpening and crop" dog.jpg
clear copyright *.jpg

Option to skip setting value if field is already set.
-=nightflyer=-
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert

Post by xnview »

nightflyer wrote:Please add possibility to read/set IPTC fields.
Something like:
-iptcread caption dog.jpg
prints "This is my dog"
-iptcwrite special_instruction "apply sharpening and crop" dog.jpg
sets the field
-iptcclear copyright *.jpg
clears field

An option can be read options from file, like:
-iptcbatch batch_file.cmd
And batch_file.cmd contains lines like:
read caption dog.jpg
write special_instruction "apply sharpening and crop" dog.jpg
clear copyright *.jpg

Option to skip setting value if field is already set.
Yes, will be good...
Pierre.
Mistic100
Posts: 9
Joined: Sun Jul 26, 2009 12:24 pm
Location: Avignon, Fr

Re: IPTC processing with NConvert

Post by Mistic100 »

So,
and now 4 years later
are these functions still in project ?

Mistic
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert

Post by xnview »

Mistic100 wrote: and now 4 years later
are these functions still in project ?
yes i know :(
Pierre.
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview »

Pierre.
Mistic100
Posts: 9
Joined: Sun Jul 26, 2009 12:24 pm
Location: Avignon, Fr

Re: IPTC processing with NConvert?

Post by Mistic100 »

Is there a doc about how to use -iptc_* params ?
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview »

Mistic100 wrote:Is there a doc about how to use -iptc_* params ?
you have nconvert -help only :(
Pierre.
Mistic100
Posts: 9
Joined: Sun Jul 26, 2009 12:24 pm
Location: Avignon, Fr

Re: IPTC processing with NConvert?

Post by Mistic100 »

because I tried this:
nconvert.exe -iptc_print Keywords "img.jpg"
nconvert.exe -iptc_print 25 "img.jpg" (25 is the id of the keyword field)
nconvert.exe -iptc_print IPTC.Application2.Keywords "img.jpg" (as in exiv2)

All unsuccessfully :(
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview »

Mistic100 wrote:because I tried this:
nconvert.exe -iptc_print Keywords "img.jpg"
nconvert.exe -iptc_print 25 "img.jpg" (25 is the id of the keyword field)
nconvert.exe -iptc_print IPTC.Application2.Keywords "img.jpg" (as in exiv2)
To be able to use -iptc_print you must use -info
and the good one is

Code: Select all

nconvert.exe -iptc_print 25 "img.jpg"
Pierre.
Mistic100
Posts: 9
Joined: Sun Jul 26, 2009 12:24 pm
Location: Avignon, Fr

Re: IPTC processing with NConvert?

Post by Mistic100 »

ok it works

but nconvert can't add/set iptc tags without reprocessing the picture ?
if not I will continue to use exiv2 :?
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview »

Mistic100 wrote: but nconvert can't add/set iptc tags without reprocessing the picture ?
if not I will continue to use exiv2 :?
Oh, you would like to make lossless iptc editing??
Pierre.
Mistic100
Posts: 9
Joined: Sun Jul 26, 2009 12:24 pm
Location: Avignon, Fr

Re: IPTC processing with NConvert?

Post by Mistic100 »

I don't know if lossless is the good term, but just add tags, without touch the rest of the file
exiv2 can do it (I compared the two picture, they are exactly the same, just a difference of 10 Bytes for a 6 chars lenght tag) so why not nconvert ?

ps : I don't really like exiv2 ^^ its application is very specific and the exe is 3,4MB and must come with a .dll
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview »

Mistic100 wrote:I don't know if lossless is the good term, but just add tags, without touch the rest of the file
exiv2 can do it (I compared the two picture, they are exactly the same, just a difference of 10 Bytes for a 6 chars lenght tag) so why not nconvert ?
Ok, i'll add such feature with beta 2
Pierre.
User avatar
xnview
Author of XnView
Posts: 43328
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview »

Could you try NConvert in XnView 1.98 beta 2 package?
Pierre.
Post Reply