Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mikko Koppanen's Blog:
Typesetting
Jan 17, 2008 @ 13:58:00

Mikko Koppanen has posted another quick example of using the ImageMagick functionality in PHP - overlaying a string of text over a currently existing image.

Ever had the situation where you have a piece of string which you need to overlay on an image? Maybe a situation where the area reserved for the string is known in pixels but you need to know the font size to fill most of the area? Think no more!

In his example (ready to cut and paste), he defines the text in a variable and, with the help of the newPseudoImage method, adds the text over the top of his sample image. Example input and output is provided.

tagged: imagemagick image graphic typesetting string overlay imagemagick image graphic typesetting string overlay

Link:

Mikko Koppanen's Blog:
Typesetting
Jan 17, 2008 @ 13:58:00

Mikko Koppanen has posted another quick example of using the ImageMagick functionality in PHP - overlaying a string of text over a currently existing image.

Ever had the situation where you have a piece of string which you need to overlay on an image? Maybe a situation where the area reserved for the string is known in pixels but you need to know the font size to fill most of the area? Think no more!

In his example (ready to cut and paste), he defines the text in a variable and, with the help of the newPseudoImage method, adds the text over the top of his sample image. Example input and output is provided.

tagged: imagemagick image graphic typesetting string overlay imagemagick image graphic typesetting string overlay

Link:


Trending Topics: