Page 1 of 1

Caption clips

Posted: 2013-05-30T14:40:09-07:00
by snibgo
In IM v6.8.5-0 (on Windows 7), "caption:" clips words where 6.8.4-0 didn't. I don't know if this is a new bug or a fix of an old bug. In other words, I don't know if 6.8.4 or 6.8.5 is correct. Examples:

Code: Select all

rem These two clip the long word:

convert -size 50x200 -pointsize 20 caption:"abc defghijklmnop" c1.png

convert -size 50x -pointsize 20 caption:"abc defghijklmnop" c2.png

Code: Select all

rem The next two are okay:

convert -size x200 -pointsize 20 caption:"abc defghijklmnop" c3.png

convert -size 50x200 caption:"abc defghijklmnop" c4.png

In 6.8.4, only c2 is bad. The other versions show all the characters (possibly by splitting words).

Code: Select all

convert -size 50x200 -pointsize 20 caption:"abc defghijklmnop" c1.png

convert -size 50x -pointsize 20 caption:"abc defghijklmnop" c2.png

Code: Select all

rem The next two are okay:

convert -size x200 -pointsize 20 caption:"abc defghijklmnop" c3.png

convert -size 50x200 caption:"abc defghijklmnop" c4.png

Re: Caption clips

Posted: 2013-05-30T15:21:28-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.5-9 Beta available by sometime tomorrow. Thanks.

Re: Caption clips

Posted: 2013-06-02T13:04:33-07:00
by fmw42
In IM 6.8.5.10 Q16 beta, the first does not seem to work - it gets cut off. The second seems to work

imb convert -size 50x200 -pointsize 20 caption:"abc defghijklmnop" c1.png
Image

imb convert -size 50x -pointsize 20 caption:"abc defghijklmnop" c2.png
Image

Re: Caption clips

Posted: 2013-06-02T13:12:03-07:00
by magick
Its working. ImageMagick only computes splits if height is not defined. We assume the user knows what they are doing if each of width / height / pointsize are defined. This is a similar behavior with labels.

Re: Caption clips

Posted: 2013-06-02T13:23:16-07:00
by fmw42
thanks for the clarification.