php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35971 error while using imagefilter()
Submitted: 2006-01-11 13:10 UTC Modified: 2006-01-11 13:14 UTC
From: sindhu at cypherminds dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.4.1 OS: Linux
Private report: No CVE-ID: None
 [2006-01-11 13:10 UTC] sindhu at cypherminds dot com
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() 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-11 13:14 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

It\'s a PHP 5 only function, which is written in the documentation at http://php.net/image_filter
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC