Imagemagick command to write iptc data in file "iptc_caption.txt" to "iptc_image_out.jpg." |
convert +profile 8BIM,IPTC -profile 8BIMTEXT:iptc_caption.txt "iptc_image.jpg" "iptc_image_out.jpg" |
Contents of iptc_caption.txt |
8BIM#1028="IPTC" 2#120#Caption=""0123456789" 0123456789 0123456789 0123456789" |
This is sample data to make it easy to see what happens. The problem occurs when
I try to enter a caption that contains quotes.
"0123456789" 0123456789 0123456789 0123456789 The quotes have to be encoded as " or they will mark the end of the caption. The error also only seems to occur if the caption contains "enough(?)" characters. |
Raw file data from "image_iptc_out.jpg" (IPTC Caption is afer "8BIM2x-") |