Posted: 2006-12-07T12:00:59-07:00
I cheated a bit
I made your graphic a png with a transparent circle where the picture is to go ?
Then I used the code below to create a background, resize the photo and put them all together. There are so many things you can do but I assume you will need to resize the photo. Anyway I am starting to ramble:
http://www.rubblewebs.co.uk/imagemagick ... dunphy.php
With Dst_Out you should be able to "punch out" the circle as Anthony puts it but I couldn't get that to work.
http://redux.imagemagick.org/discourse- ... highlight=

Then I used the code below to create a background, resize the photo and put them all together. There are so many things you can do but I assume you will need to resize the photo. Anyway I am starting to ramble:
Code: Select all
<?php
exec("/usr/local/bin/convert -size 800x200 xc:none background.png ");
exec("/usr/local/bin/convert pumpkin.jpg -resize 250x250 pumpkin_small.jpg ");
exec("/usr/local/bin/convert background.png -composite pumpkin_small.jpg -geometry +0+30 -composite header.png -composite output.png ");
?>
<img src="output.png">
With Dst_Out you should be able to "punch out" the circle as Anthony puts it but I couldn't get that to work.
http://redux.imagemagick.org/discourse- ... highlight=