Page 1 of 1

IPTC processing with NConvert?

Posted: Mon Nov 06, 2006 10:17 am
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.

Re: IPTC processing with NConvert

Posted: Tue Nov 07, 2006 2:29 pm
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...

Re: IPTC processing with NConvert

Posted: Fri Dec 17, 2010 7:22 pm
by Mistic100
So,
and now 4 years later
are these functions still in project ?

Mistic

Re: IPTC processing with NConvert

Posted: Thu Dec 23, 2010 6:32 pm
by xnview
Mistic100 wrote: and now 4 years later
are these functions still in project ?
yes i know :(

Re: IPTC processing with NConvert?

Posted: Thu Mar 03, 2011 9:54 am
by xnview

Re: IPTC processing with NConvert?

Posted: Fri Mar 04, 2011 11:43 am
by Mistic100
Is there a doc about how to use -iptc_* params ?

Re: IPTC processing with NConvert?

Posted: Fri Mar 04, 2011 12:28 pm
by xnview
Mistic100 wrote:Is there a doc about how to use -iptc_* params ?
you have nconvert -help only :(

Re: IPTC processing with NConvert?

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

Re: IPTC processing with NConvert?

Posted: Fri Mar 04, 2011 12:43 pm
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"

Re: IPTC processing with NConvert?

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

Re: IPTC processing with NConvert?

Posted: Fri Mar 04, 2011 1:05 pm
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??

Re: IPTC processing with NConvert?

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

Re: IPTC processing with NConvert?

Posted: Fri Mar 04, 2011 4:59 pm
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

Re: IPTC processing with NConvert?

Posted: Thu Mar 10, 2011 12:45 pm
by xnview
Could you try NConvert in XnView 1.98 beta 2 package?