Hello
I want to crop a picture that I have on the server. When using the code below I get a error message:
Apache.exe - aplication error
The instruction at "0x00ccd229" ref. memory at "0x14234ed". The memory could not be "read".
Click ok...
Click Cancel...
This is the code:
...............................
<html>
<body>
<?
$new_w=250;
$new_h=100;
$dst_img=ImageCreate($new_w,$new_h);
$src_img=ImageCreateFromPng("uploads/800X600X24.png");
imageCopy($dst_img,$src_img,30,20,50,60,250,100);
ImagePng($dst_img,"uploads/thumb250X100.png");
?>
<img src="uploads/thumb250X100.png" width="250" height="100">
</body>
</html>
...............................
I´m on W2k, Apache 2.0, gd 2.0 or higher, PHP Version 4.2.2-dev
Anyone?
JediSthlm