note 26982 added to function.imagejpeg

From: Date: Tue, 19 Nov 2002 14:45:05 +0000
Subject: note 26982 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-39701@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? -- http://www.php.net/manual/en/function.imagejpeg.php http://master.php.net/manage/user-notes.php?action=edit+26982 http://master.php.net/manage/user-notes.php?action=delete+26982 http://master.php.net/manage/user-notes.php?action=reject+26982

« previous php.notes (#39701) next »