Page 1 of 1
East/West Gravity Incorrect Y Position
Posted: 2016-05-16T07:25:43-07:00
by carsonreinke
A simple test will shows both East and West gravity slightly higher then Center gravity.
Code: Select all
convert -size 120x120 xc:white -gravity northwest -annotate 0 'NorthWest' -gravity west -annotate 0 'West' -gravity east -annotate 0 'East' -gravity center -annotate 0 'Center' -gravity south -annotate 0 'South' -gravity northeast -annotate 0 'NorthEast' gravity_text.jpg
I was able to reproduce this on ImageMagick 6.9.3-0 and 6.9.3-10. I did not test on 7+.
Re: East/West Gravity Incorrect Y Position
Posted: 2016-05-16T08:41:16-07:00
by magick
Center gravity centers in two directions left / right, top / bottom.
Re: East/West Gravity Incorrect Y Position
Posted: 2016-05-17T09:21:37-07:00
by carsonreinke
I realize that...East and West gravity have changed and do not center vertically compared to Center gravity. There is an odd offset. Previously in <6.9 this problem did not occur.
See the example output here:
https://drive.google.com/file/d/0B5-oVR ... M1ZEE/view
Re: East/West Gravity Incorrect Y Position
Posted: 2016-05-17T10:06:25-07:00
by fmw42
I can verify that center text is slightly lower in y than east or west text. I am using 6.9.4-2 Q16 (non-hdri) Mac OSX. Same with IM 7.0.1.4 Q16 (non-hdri). Below I specify the font and pointsize rather than take the system default.
Code: Select all
convert -size 120x120 xc:white -font arial -pointsize 12 -gravity northwest -annotate 0 'NorthWest' -gravity west -annotate 0 'West' -gravity east -annotate 0 'East' -gravity center -annotate 0 'Center' -gravity south -annotate 0 'South' -gravity northeast -annotate 0 'NorthEast' gravity_text.jpg
Re: East/West Gravity Incorrect Y Position
Posted: 2016-05-17T14:02:57-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @
https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @
http://www.imagemagick.org/download/beta/ by sometime tomorrow.
Re: East/West Gravity Incorrect Y Position
Posted: 2016-05-18T05:41:49-07:00
by carsonreinke
Great, thank you! Will this be back ported to 6.9?
Re: East/West Gravity Incorrect Y Position
Posted: 2016-05-18T09:23:29-07:00
by fmw42
It should be in the next release of both IM 6.9.4.x and 7.0.1.x. It will not be backported to an existing release x.