note 26982 deleted from function.imagejpeg by tix
| From: | tix@php.net | Date: | Tue, 19 Nov 2002 14:52:24 +0000 |
| Subject: | note 26982 deleted from function.imagejpeg by tix | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-39702@lists.php.net to get a copy of this message | ||
part of my script:
$source = ImageCreateFromJPEG($uploadDirOrg . $new_name);
$dst = imagecreate($tn_width, $tn_height);
ImageCopyResized($dst, $source, 0, 0, 0, 0, $tn_width, $tn_height, $width, $height);
header("Content-type: image/jpeg");
ImageJPEG($dst, $uploadDir . $new_name);
This creates an image with 0 bytes filesize, while if I change $dst in $source in the ImageJPEG
line, I get my original image?
What's wrong here?