I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-03-10 11:28:18-07 by linuxuser
linebreaks in imagedescription field
How do I have to code linebreaks in the imagedescription field?

I tried
\n\n\ and \r\r
.

I would like to do in a linux shell:

exiftool -q -q -s -s -s -IMAGEDESCRIPTION "$FILE" >> "$DESCRTXT"
cat "$DESCRTXT"


and the linebreaks should be shown.
Direct Responses: 10142 | Write a response
Posted on 2009-03-10 14:10:10-07 by exiftool in response to 10141
Re: linebreaks in imagedescription field
There are many different ways to do this. I suggest using the -p option, where '$/' represents a newline in the format string:

exiftool -p '$imagedescription$/' "$FILE" >> "$DESCRTXT"

- Phil
Direct Responses: 10143 | Write a response
Posted on 2009-03-10 15:19:50-07 by linuxuser in response to 10142
Re: linebreaks in imagedescription field
Thanks Phil!

Since you said, that there are more possibilities, what would you recommend, if 2 in a current imagedescription field should mark 2 paragraphs/linebreaks?
Direct Responses: 10144 | Write a response
Posted on 2009-03-10 15:24:04-07 by linuxuser in response to 10143
Re: linebreaks in imagedescription field
Sorry for the typo, it should be:
Since you said, that there are more possibilities, what would you recommend, if 2 space characters in a current imagedescription field should mark 2 paragraphs/linebreaks in the output of exiftool?
Direct Responses: 10145 | Write a response
Posted on 2009-03-10 15:55:34-07 by exiftool in response to 10144
Re: linebreaks in imagedescription field
If I understand you correctly, you're now talking about translating characters in output tag values. Creating a user-defined Composite tag is the way to do this.

- Phil
Direct Responses: Write a response