possible bug in label in IM 6.4.2-10 or earlier
Posted: 2008-08-19T19:12:39-07:00
I have some scripts that generate graphs. Part of the graph is a label for the vertical axis which I have been making successfully for quite some time. But today I noticed that the part of the graph that is the vertical axis label is now getting cropped a bit on the right edge. Something has changes in one of the later releases. As of IM 6.4.2-10 is where I caught this (Q16 Mac OSX Tiger).
(For example compare the old graphs at http://www.fmwconcepts.com/imagemagick/plm/index.php vs the new ones generated today at http://www.fmwconcepts.com/imagemagick/curves/index.php).
Here is the part that is now not quite working:
convert -background white -fill black -font Arial \
-pointsize 12 -gravity center label:'o\nu\nt\np\nu\nt' output.png
You will see that the right edge is cropped/trimmed too much, now. But in earlier releases (don't know where it changed) it was working fine.
If something has changed and this is not a bug, can you point out an easy way to avoid the trim without having to determine the size of this image first. I would still like to use label as the IM function to create it as it is supposed to create an image just large enough to hold the text without trimming away any of the text.
Thanks.
P.S. I have not changed any of my fonts since it was working before.
Fred
(For example compare the old graphs at http://www.fmwconcepts.com/imagemagick/plm/index.php vs the new ones generated today at http://www.fmwconcepts.com/imagemagick/curves/index.php).
Here is the part that is now not quite working:
convert -background white -fill black -font Arial \
-pointsize 12 -gravity center label:'o\nu\nt\np\nu\nt' output.png
You will see that the right edge is cropped/trimmed too much, now. But in earlier releases (don't know where it changed) it was working fine.
If something has changed and this is not a bug, can you point out an easy way to avoid the trim without having to determine the size of this image first. I would still like to use label as the IM function to create it as it is supposed to create an image just large enough to hold the text without trimming away any of the text.
Thanks.
P.S. I have not changed any of my fonts since it was working before.
Fred