|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-01-11 13:14 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 04:00:01 2025 UTC |
Description: ------------ I have created a photo management website, using php 5 on my local server. It consists of code for image manipulations too. It worked perfect on my local server but once I uploaded to Linux server with php 4.4, it gives me errors... Fatal error: call to undefined function imagefilter(). phpinfo shows that the GD library is enabled. Am not able to find a solution to this anywhere. Can someone here help me? Reproduce code: --------------- $imgsrc = imagecreatefromjpeg($tempImagePath);//source image path if ($imgsrc && imagefilter($imgsrc, IMG_FILTER_GRAYSCALE)) { $imgsrc = imagejpeg($imgsrc, $tempImagePath); } Expected result: ---------------- the source image should get convert to grayscale Actual result: -------------- Fatal error: Call to undefined function: imagefilter()