Page 1 of 1
Command line:to overlay text over graphics image and crop
Posted: 2015-04-14T23:30:23-07:00
by ummaga
Hi..
I have a Graphics Image as a background and I need to draw text(consider for example Arial/ point size could be any) over it and crop the composed image along the with text edges width and height..
It should work for all conditions ie multiline text/ single line text..
What is the fastest method command line argument should be given?
Thanks in advance..
Re: Command line:to overlay text over graphics image and crop
Posted: 2015-04-15T02:27:12-07:00
by snibgo
The obvious method is to make a white image the same size, and write the text on this. "-trim" or "-format %@" gives you the required crop. Then write the text on the required background, and do the same crop.
I don't think you can do this in a single command.
Re: Command line:to overlay text over graphics image and crop
Posted: 2015-04-15T04:12:18-07:00
by ummaga
Hi thanks could you give me some example pls?
Re: Command line:to overlay text over graphics image and crop
Posted: 2015-04-15T10:48:17-07:00
by Bonzo
I for one do not mind helping someone out who has tried to get a result they want; but not for people who come and ask for some code without making any effort to try for themselves.
Searching this forum would answer most of your question; visiting this example site would also help:
http://www.imagemagick.org/Usage
Your best bet is to use caption to create the text image; composite it over your base image and crop
Re: Command line:to overlay text over graphics image and crop
Posted: 2015-04-15T13:16:18-07:00
by fmw42
It is also important that you provide your version of Imagemagick and platform, since syntax may be different.
Please read
viewtopic.php?f=1&t=9620