hello guys, hope u can help coz i m still new in PHP. The code below is copied from
WROX PROFESSIONAL PHP PROGRAMMING. when i run the prog. it gave me this error.
Fatal error: Call to undefined function: imagecreatefromgif() in E:\upload\wroxsize.php on line 8
and for your information. i m using php4.0.6 full version.
<?php
/ We load a small GIf file to be expanded into a larger file and calculate
the width and height of the image /
$size = GetImageSize("small.gif");
$im_in = ImageCreateFromGif("small.gif");
/ Set the height and width of the output image to four times those of the input /
$im_out = ImageCreate($size[0] 4, $size[1] 4);
// Now to copy the smaller image, but four
// times larger
ImageCopyResized($im_out, $im_in, 0, 0, 0, 0, $size[0] 4, $size[1] 4, $size[0], $size[1]);
ImageGif($im_out, "large.gif");
ImageDestroy($im_in);
ImageDestroy($im_out);
?>
<IMG SRC="small.gif" BORDER=0>
<IMG SRC="large.gif" BORDER=0>