Page 1 of 1
New Beta Bug
Posted: 2012-05-23T03:00:28-07:00
by alasdairdf
Using the latest beta to date:
Version: ImageMagick 6.7.7-1 2012-05-22 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
Font from:
http://www.forgottenbooks.org/smallcaps.otf
A single word is split over 2 lines with any mid-long single word:
convert -limit thread 1 -background yellow -font "smallcaps.otf" +pointsize -size 1335x806 -gravity center -fill "rgb(28,22,17)" caption:"Anthropology" -trim -write test1.jpg -format "%wx%h" info:-
convert -limit thread 1 -background yellow -font "smallcaps.otf" +pointsize -size 1335x806 -gravity center -fill "rgb(28,22,17)" caption:"Jerningham" -trim -write test2.jpg -format "%wx%h" info:-
convert -limit thread 1 -background yellow -font "smallcaps.otf" +pointsize -size 1335x806 -gravity center -fill "rgb(28,22,17)" caption:"Buddhism" -trim -write test3.jpg -format "%wx%h" info:-
Re: New Beta Bug
Posted: 2012-05-23T03:14:49-07:00
by alasdairdf
This is even worse:
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x605 -gravity center -fill "rgb(28,22,17)" caption:"Buddhism" -trim -write test4.jpg -format "%wx%h" info:-
It totally messed up the trim, cuts into the text on the top and bottom.
Re: New Beta Bug
Posted: 2012-05-23T03:26:04-07:00
by alasdairdf
This one comes out considerably shorter in height that is specified:
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x806 -gravity center -fill "rgb(28,22,17)" caption:"The Practical Gas and Oil Engine Handbook a Manual of Useful Information on the Care, Maintenance and Repair of Gas and Oil Engines, With Special Reference to the Diesel Oil Engine" -trim -write test5.jpg -format "%wx%h" info:-
Returns 1331x237, when I specified up to 806 height.
This too:
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x605 -gravity center -fill "rgb(28,22,17)" caption:"A Manual of General History" -trim -write test6.jpg -format "%wx%h" info:-
Re: New Beta Bug
Posted: 2012-05-23T03:38:48-07:00
by alasdairdf
Get's worse and worse. For this one only the letter "e" is left, and everything else is cut off.
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x605 -gravity center -fill "rgb(28,22,17)" caption:"Pinafore Palace" -trim -write test7.jpg -format "%wx%h" info:-
It's not a trim problem, because it's still only "e" even without the -trim.
Same here:
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x605 -gravity center -fill "rgb(28,22,17)" caption:"Original Plays" -write test8.jpg -format "%wx%h" info:-
Re: New Beta Bug
Posted: 2012-05-23T04:54:22-07:00
by magick
A new beta will be available in an hour. Let is know if that fixes the problems you reported.
Re: New Beta Bug
Posted: 2012-05-23T17:09:47-07:00
by alasdairdf
Thanks magick. It fixes all the major issues, there are still some minor issues. E.g.
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x605 -gravity center -fill "rgb(28,22,17)" caption:"A Manual of General History" -trim -write test6.jpg -format "%wx%h" info:-
# 1325x71
The one has not been split over 2 lines. It still looks sort-of OK, but any longer sentences would look bad if not split.
Still, this is a great improvement to the last beta!
I will stress-test it and see if any other bugs come up.
Re: New Beta Bug
Posted: 2012-05-23T17:32:05-07:00
by alasdairdf
Version: ImageMagick 6.7.7-1 2012-05-23 Q16
There is still a serious bug with certain long sentences:
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x806 -gravity center -fill "rgb(28,22,17)" caption:"Petrifactions and Right Honourable and Honourable, the to of the British Museum, His Grace John Bird Lord Archbishop of Canterbury, Thomas Lord Truro Lord High Chancellor, Right Hon" -trim -write test10.jpg -format "%wx%h" info:-
# 1322x49
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x806 -gravity center -fill "rgb(28,22,17)" caption:"The Cat a Guide to the Classification and Varieties of Cats, and a Short Treatise Upon Their, Care, Diseases, and Treatment" -trim -write test11.jpg -format "%wx%h" info:-
# 1291x21
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x806 -gravity center -fill "rgb(28,22,17)" caption:"Recent Economic Changes and Their Effect on the Production and Distribution of Wealth, and the Well-Being of Society" -trim -write test12.jpg -format "%wx%h" info:-
# 1292x21
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x605 -gravity center -fill "rgb(28,22,17)" caption:"Notes on the Scientific and Religious Mysteries of Antiquity" -trim -write test13.jpg -format "%wx%h" info:-
# 1318x42
convert -limit thread 1 -background transparent -font "smallcaps.otf" +pointsize -size 1335x605 -gravity center -fill "rgb(28,22,17)" caption:"Were You Born Under a Lucky A Complete Exposition of the Science of Astrology Adapted from the Four Books of Ptolemy" -trim -write test8.jpg -format "%wx%h" info:-
# 1303x17
Re: New Beta Bug
Posted: 2012-05-23T18:52:58-07:00
by magick
We have a patch that works reliably but its quite slow. We'll look for a way to speed up the process sometime tomorrow.
Re: New Beta Bug
Posted: 2012-05-23T22:21:44-07:00
by alasdairdf
OK, thanks. A couple of seconds per image doesn't make much difference to me. Perhaps there could be a command to choose a more reliable but slower method for the caption, vs. a quicker but slightly less reliable method?
Re: New Beta Bug
Posted: 2012-05-23T22:47:29-07:00
by fmw42
alasdairdf wrote:OK, thanks. A couple of seconds per image doesn't make much difference to me. Perhaps there could be a command to choose a more reliable but slower method for the caption, vs. a quicker but slightly less reliable method?
Out of curiosity do you get the same problems from using PANGO: rather than CAPTION:
see
http://www.imagemagick.org/Usage/text/#pango
Re: New Beta Bug
Posted: 2012-05-24T18:35:03-07:00
by alasdairdf
Out of curiosity do you get the same problems from using PANGO: rather than CAPTION:
I think that in PANGO you have to specify the font size, it won't just match the font size to the canvas size, like caption does. Correct me if I'm wrong.
magick, I see a new beta is out. Is there anything in this on the caption?
Re: New Beta Bug
Posted: 2012-05-24T18:55:45-07:00
by magick
The new beta should resolve the problems you've reported. Let us know if you have any more problems.
Re: New Beta Bug
Posted: 2012-05-24T23:13:21-07:00
by alasdairdf
Thanks! I'll be sure to let you know if there are any more little bugs hiding in there!