Monday, January 25, 2010

Image Magic code

This post is for those who are new to image magic and want to start with something.

This simple command will merge two images and output with the third or overwrite any image.

exec("composite -geometry +0+30 -gravity north ".$uploadDir.$thumb." ".$uploadDir.$imgnm." ".$uploadDir.$imgnm."");

Make sure that both files before this command executed.

To know more about Image Magic CLICK HERE

0 comments:

Post a Comment