convert not using vertical text size for scaling in 6.8.5
Posted: 2013-05-06T11:36:40-07:00
These comments all apply to Slackware GNU/Linux 14.0. I don't know
if this bug manifests in any other OS or OS version.
The following command worked sort of properly in imagemagick-6.7.7
convert -background lightblue -fill black -size 210x210 \
-gravity center -interline-spacing 0 -extent +0-10 \
-quality 60 label:"HP\n4" x.jpg
ie it produced an image with 'HP' on one line and '4' on the next, tho a
possible bug was that the two lines were not centered vertically as one
would expect given -gravity center in the command. I had to add
-extent +0-10 to push the two lines down to be centered vertically.
However that is not my real concern.
I "upgraded" to imagemagick-6.8.5 and suddenly the image created
by the command above used such a huge point size that the top of the
"HP" and the bottom of the "4" were cut off. Curiously as I tried other
label verbiage the scaling worked when the lines got wide horizontally.
Therefore I suspect that the newer ImageMagick is failing to consider
the text's vertical size when scaling the text to fit the image size.
I uninstalled the newer version and reinstalled the old version and
all was well again.
if this bug manifests in any other OS or OS version.
The following command worked sort of properly in imagemagick-6.7.7
convert -background lightblue -fill black -size 210x210 \
-gravity center -interline-spacing 0 -extent +0-10 \
-quality 60 label:"HP\n4" x.jpg
ie it produced an image with 'HP' on one line and '4' on the next, tho a
possible bug was that the two lines were not centered vertically as one
would expect given -gravity center in the command. I had to add
-extent +0-10 to push the two lines down to be centered vertically.
However that is not my real concern.
I "upgraded" to imagemagick-6.8.5 and suddenly the image created
by the command above used such a huge point size that the top of the
"HP" and the bottom of the "4" were cut off. Curiously as I tried other
label verbiage the scaling worked when the lines got wide horizontally.
Therefore I suspect that the newer ImageMagick is failing to consider
the text's vertical size when scaling the text to fit the image size.
I uninstalled the newer version and reinstalled the old version and
all was well again.