Re: Image Destroy
| From: | Chris | Date: | Wed, 16 Aug 2006 00:30:03 +0000 |
| Subject: | Re: Image Destroy | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240751@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
On Tue, August 15, 2006 6:31 am, chris smith wrote:which is why i replied straight away with the fix ;) -- Postgresql & php tutorials http://www.designmagick.com/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.