Hi
I want to center the text on Image (Horizontal Center)
But the vertical position of the text will be in various place.
How do i do that?
Thanks
Center Text On Image
Re: Center Text On Image
I would use -gravity center to center it then move it up and dow - you do not say how you are writting the text as unsing -annotate you could -annotate +0+100 with -gravity
Re: Center Text On Image
I thought we can't use annotate while using gravity center.
Can i use negative values in annotate?
Thanks
Can i use negative values in annotate?
Thanks
Re: Center Text On Image
I am lost with the gravity business but think it should work in this situation BUT the text you are writting may be centered. Just try it and see - yes you can use negative values for -annotate
Re: Center Text On Image
Yes, It is working...
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Center Text On Image
as the vertical location is variable I would use 'North' gravity for horizontal centering then Y offset for vertical placement (specifying the gap between text and top of image).
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/