I got this example from a book put it doesn't seem to work.
Code: Select all
<?php
Header("Content-type: image/jpeg");
$image = ImageCreateFromJPEG("map.jpg");
$icon = ImageCreateFromJPEG("pin.jpg");
$trans = ImageColorAt($icon, 0, 0);
ImageColorTransparant($icon, $trans);
$width = ImageSX($icon);
$height = ImageSY($ican);
ImageCopyResized($image, $icon, 20, 20, 0, 0, $width, $height, $width, $height);
ImageJPEG($image);
ImageDestroy($image);
?>Thanks
Ozmodiar