note 81740 deleted from function.imagepng by nlopess

From: Date: Tue, 11 Mar 2008 23:43:24 +0000
Subject: note 81740 deleted from function.imagepng by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-136955@lists.php.net to get a copy of this message
Note Submitter: Chad Allard ---- In reply to Jeff Sauro, It seems that since 5.1, imagepng() accepts compression argument. The compression argument must be between 0 (no compression) and 9. so instead of saying imagepng($image,$file_location,100); you might try this instead: imagepng($image, $file_location, 0); So I don't think that adding all the additional parameters is quite necessary. I'm not quite certain, but this might actually be a glitch in GD2? There might even be a patch available.

« previous php.notes (#136955) next »