Richard Lynch wrote:
On Tue, August 15, 2006 6:31 am, chris smith wrote:
imagedestroy($target_id);
imagedestroy($source_id);
just before
imagejpeg ($target_id,"$targetfile",$jpegqual);
return true;
}
If you destroy it before you write it to disk, you gonna get garbage
for your disk JPEG.
destroy $target_id *AFTER* you imagejpeg() it.
which is why i replied straight away with the fix ;)
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php