IPTC -iptc:Caption-Abstract

Started by battit64, September 16, 2014, 03:35:31 PM

Previous topic - Next topic

battit64

How to make a CR int iptc:Caption-Abstract
is it possible?

Phil Harvey

I'm lost.  What is "CR int"?

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

#2
I'm guessing they mean a how to put a Carriage Return into Caption-Abstract.

Option B on FAQ 21 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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Thanks StarGeek.  Nice to have your help around here. :)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

battit64

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

Phil Harvey

Using StarGeek's first method, the arguments would be:

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

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).