IPTC processing with NConvert?

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

Moderators: XnTriq, xnview

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

IPTC processing with NConvert?

Post by nightflyer » Mon Nov 06, 2006 10:17 am

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: 33651
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert

Post by xnview » Tue Nov 07, 2006 2:29 pm

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 » Fri Dec 17, 2010 7:22 pm

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

Mistic

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

Re: IPTC processing with NConvert

Post by xnview » Thu Dec 23, 2010 6:32 pm

Mistic100 wrote: and now 4 years later
are these functions still in project ?
yes i know :(
Pierre.

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

Re: IPTC processing with NConvert?

Post by xnview » Thu Mar 03, 2011 9:54 am

Pierre.

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

Re: IPTC processing with NConvert?

Post by Mistic100 » Fri Mar 04, 2011 11:43 am

Is there a doc about how to use -iptc_* params ?

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

Re: IPTC processing with NConvert?

Post by xnview » Fri Mar 04, 2011 12:28 pm

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 » Fri Mar 04, 2011 12:41 pm

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: 33651
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview » Fri Mar 04, 2011 12:43 pm

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 » Fri Mar 04, 2011 12:55 pm

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: 33651
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview » Fri Mar 04, 2011 1:05 pm

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 » Fri Mar 04, 2011 1:19 pm

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: 33651
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview » Fri Mar 04, 2011 4:59 pm

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: 33651
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: IPTC processing with NConvert?

Post by xnview » Thu Mar 10, 2011 12:45 pm

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

Post Reply