I am calling a PHP script from perl to manipulate some pictures. I am building an image out of 5 seperate parts.
I am a bit stuck at this point in a script.
At this point the first created picture is returned to my calling script proving the picture is being created.
The next part of the code creates the main image and should be at the beginning of the script but I have moved it to here for testing.
I create a new image and fill it with colour so it can be seen.
and try to merge the first image into this newly created one here.
Nothing is returned.
If I remove the imagecopymerge function, a black box is returned as expected.
What am I missing here?
Keith
I am a bit stuck at this point in a script.
At this point the first created picture is returned to my calling script proving the picture is being created.
Code:
imagejpeg($newim);
I create a new image and fill it with colour so it can be seen.
Code:
$framedpic= imagecreate($fullwidth,$fullheight);
$culler = imagecolorallocate ($framedpic,20,20,20);
imagefilledrectangle ( $framedpic, 0, 0, $fullwidth, $fullheight, $culler );
Code:
ImageCopyMerge ( $framedpic, $newim, 0, 0, 0, 0, 50, 50, 50)
imagejpeg($framedpic);
If I remove the imagecopymerge function, a black box is returned as expected.
What am I missing here?
Keith