Guest_imported
New member
- Jan 1, 1970
- 0
Hi!
When I run the Script ($input is a jpeg file) above I get this error message:
"Warning: imagejpeg: unable to open 'upload/Hallo.jpg' for writing in ..."
What's wrong? Please help
Bye and thanx
Zooomby
<?
$size=getimagesize("$input"
$w_original=$size[0];
$h_original=$size[1];
$breite_neu=100;
$imgA = imagecreatefromJPEG("$input"
$imgB = imagecreate(50,50);
ImageCopyResized($imgB,$imgA,0,0,0,0,50,50,$w_original,$h_original);
imageJPEG($imgB,"upload/Hallo.jpg"
?>
When I run the Script ($input is a jpeg file) above I get this error message:
"Warning: imagejpeg: unable to open 'upload/Hallo.jpg' for writing in ..."
What's wrong? Please help
Bye and thanx
Zooomby
<?
$size=getimagesize("$input"
$w_original=$size[0];
$h_original=$size[1];
$breite_neu=100;
$imgA = imagecreatefromJPEG("$input"
$imgB = imagecreate(50,50);
ImageCopyResized($imgB,$imgA,0,0,0,0,50,50,$w_original,$h_original);
imageJPEG($imgB,"upload/Hallo.jpg"
?>