Image-ExifTool - Re: Linebreak in 0x010e Image Description

Posted on Thu Jul 17 00:26:37 2008 by exiftool in response to 8333 (See the whole thread of 7)
Re: Linebreak in 0x010e Image Description
Haha. I wouldn't do that to you. ;)

There are three ways:

1) In a Unix shell, you can put a line break in the command using "\" at the end of the line (not sure if you can do this in Windows though):

exiftool -imagedescription="line 1\ line 2" image.jpg

2) Create a file with the the exact description, including linebreaks, and write the value from the contents of the file:

exiftool -imagedescription"<=file.txt" image.jpg

3) Use $/ in a redirection expression to generate the newline:

exiftool "-imagedescription<line 1${/}line 2" image.jpg

The third technique, however, incurs a performance penalty since it will first read the file to extract tag values in case they are used in the expression (which they aren't).

- Phil
Direct Responses: 8335 | Write a response