note 76745 deleted from function.imagefilter by nlopess

From: Date: Wed, 08 Aug 2007 15:11:57 +0000
Subject: note 76745 deleted from function.imagefilter by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-129333@lists.php.net to get a copy of this message
Note Submitter: devin at zigadabooga dot com ---- Can these be used with imagejpeg() ? I've tried with this code: <?php $im = imagecreatefromjpeg('5.jpg'); /* R, G, B, so 0, 255, 0 is green */ if ($im && imagefilter($im, IMG_FILTER_COLORIZE, 0, 255, 0)) { echo 'Image successfully shaded green.'; imagejpeg($im, null, 100); } else { echo 'Green shading failed.'; } imagedestroy($im); ?> And I get this error: Fatal error: Call to undefined function: imagefilter() I have PHP 4.47 and GD 2.0.28

« previous php.notes (#129333) next »