Help - Search - Members - Calendar
Full Version: Gd Library - Imagefilter()
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
skatana
Hi,
I'm trying to use the GD Library in PHP to change the color of an image in PHP. On my local server, it works ok, but when I upload my files to my zyic website, I get the following error:

Fatal error: Call to undefined function imagefilter() in /www/uuuq.com/s/k/a/skatana/htdocs/demo/twinkling/index.php on line 221

Here is my code:

CODE
<?php
$im = imagecreatefrompng('images/arrow.png');

imagefilter($im, IMG_FILTER_COLORIZE, 0, 255, 0);
imagepng($im, 'images/arrowf.png');
imagedestroy($im);
?>


I've verified with .phpinfo(); and it seems like GD library is installed.
Could someone tell me why its not working?

Thanks
Ed
imagefilter requires a php with the bundled GD library, the server uses the official build.
skatana
QUOTE(Ed @ Aug 28 2009, 04:49 PM) *
imagefilter requires a php with the bundled GD library, the server uses the official build.


So how could I use the imagefilter? Is there any workaround?

Thanks
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.