Page 1 of 1

Newlines in text files no longer work.

Posted: 2018-08-16T02:21:08-07:00
by alien_life_form
Greetings.
Using ImageMagick-6.9.9.38-1.fc28.x86_64 on a linux (Fedora Core 28) platform.

Until recently the following:

Code: Select all

convert -size "$SZ" xc:"$BG" -font "$FN" -pointsize $PZ -fill "$FG" -annotate +"$BL"+"$BL" "@$infile" -trim -bordercolor "$BC" -border "$BL" +repage "$outfile"
(e.g:

Code: Select all

convert -size 2000x6000 xc:black -font Courier-Bold -pointsize 64 -fill white -annotate +90+90 @/tmp/lies.txt -trim -bordercolor '#000' -border 90 +repage /tmp/lies.png

)
Would convert the text file $infile to the image $outfile preserving formatting, etc.

It appears that one of the recent updates (I have no way of knowing which) broke the newline recogbnition - all the lines in the file are now drawn on on top of the other (I tried it also with a <CR><NL> terminated file, no change). Replacing -annotate with -draw (and changing the file accordingly) yields the same result.

Anybody else seeing something similar, or know if this is distro/platform dependent ?

Re: Newlines in text files no longer work.

Posted: 2018-08-16T04:29:03-07:00
by magick
Likely this is a transient bug. We tried your command with the current release of ImageMagick and got expected results.

Re: Newlines in text files no longer work.

Posted: 2018-09-03T05:17:04-07:00
by imma4