News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Mikko Koppanen's Blog:
Typesetting
January 17, 2008 @ 07: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.

0 comments voice your opinion now!
imagemagick image graphic typesetting string overlay imagemagick image graphic typesetting string overlay



Mikko Koppanen's Blog:
Creating a reflection
November 20, 2007 @ 10:20:00

Mikko Koppanen has another example of using the Imagick functionality to create an advanced image - this time, it's about adding a reflection (similar to some of the effects Apple uses in their designs).

Here is a simple example of creating a reflection of an image. The reflection is created by flipping the image and overlaying a gradient on it. Then both, the original image and the reflection is overlayed on a canvas.

Both the code and an example image are included in the post.

0 comments voice your opinion now!
imagick example reflection tutorial overlay imagick example reflection tutorial overlay



Community Events







Don't see your event here?
Let us know!


database package security job example ajax PHP5 release PEAR releases framework cakephp application book zend zendframework conference code developer mysql

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework