East/West Gravity Incorrect Y Position

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
carsonreinke
Posts: 3
Joined: 2016-05-16T07:21:25-07:00
Authentication code: 1151
Contact:

East/West Gravity Incorrect Y Position

Post 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+.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: East/West Gravity Incorrect Y Position

Post by magick »

Center gravity centers in two directions left / right, top / bottom.
carsonreinke
Posts: 3
Joined: 2016-05-16T07:21:25-07:00
Authentication code: 1151
Contact:

Re: East/West Gravity Incorrect Y Position

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Contact:

Re: East/West Gravity Incorrect Y Position

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: East/West Gravity Incorrect Y Position

Post 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.
carsonreinke
Posts: 3
Joined: 2016-05-16T07:21:25-07:00
Authentication code: 1151
Contact:

Re: East/West Gravity Incorrect Y Position

Post by carsonreinke »

Great, thank you! Will this be back ported to 6.9?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA
Contact:

Re: East/West Gravity Incorrect Y Position

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 56 guests