ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: battit64 on September 16, 2014, 03:35:31 PM

Title: IPTC -iptc:Caption-Abstract
Post by: battit64 on September 16, 2014, 03:35:31 PM
How to make a CR int iptc:Caption-Abstract
is it possible?
Title: Re: IPTC -iptc:Caption-Abstract
Post by: Phil Harvey on September 16, 2014, 04:18:41 PM
I'm lost.  What is "CR int"?

- Phil
Title: Re: IPTC -iptc:Caption-Abstract
Post by: StarGeek on September 16, 2014, 04:38:22 PM
I'm guessing they mean a how to put a Carriage Return into Caption-Abstract.

Option B on FAQ 21 (http://www.exiftool.org/faq.html#Q21) can be used, assuming you want only a CR.  Just change 
 into 
.

If that doesn't work out for you, you could try using one of the other options there and then use this to change the LFs into CRs.

ExifTool "-Caption-Abstract<${Caption-Abstract;tr/\n/\r/}" <FILE/DIR>

Edit: had to do some tweaks to get the HTML Entities to show up instead of being interpreted.
Title: Re: IPTC -iptc:Caption-Abstract
Post by: Phil Harvey on September 16, 2014, 05:58:51 PM
Thanks StarGeek.  Nice to have your help around here. :)

- Phil
Title: Re: IPTC -iptc:Caption-Abstract
Post by: battit64 on September 17, 2014, 01:42:36 AM
it's not ok for.
perhaps i don't un understand you reply  :-[

how to do in my windows command

" -iptc:Caption-Abstract="test 'CRLF' blablajdjdjdjdjdj ddjjdjdjdjd 'CRLF' djdjdjdjdjjdd"  iptc:all -codedcharacterset=utf8 -charset iptc=latin a.jpg
Title: Re: IPTC -iptc:Caption-Abstract
Post by: Phil Harvey on September 17, 2014, 07:19:37 AM
Using StarGeek's first method, the arguments would be:

-E -iptc:Caption-Abstract="test&#x0d;&#x0a;blablajdjdjdjdjdj ddjjdjdjdjd&#x0d;&#x0a;djdjdjdjdjjdd"

- Phil