Fatal Error: Call to undefined function imagefilter()


 
Thread Tools Search this Thread
Top Forums Web Development Fatal Error: Call to undefined function imagefilter()
# 1  
Old 12-29-2009
Fatal Error: Call to undefined function imagefilter()

I am using PHP5 in ubuntu 9.10.
First I installed PHP and GD as separate package. I tried doing manipulation with images using php image function. When I try using the function imagefilter(), it was not worked and got the solution that need to compile the PHP with the bundled version of GD. So that I have downloaded php5 source and compiled with GD and installed that deb package. Just I did the following steps,
Quote:
#apt-get install build-essential fakeroot dpkg-dev devscripts
#apt-get source php5
#apt-get build-dep php5
#dpkg-source -x php5_5.2.10.dfsg.1-2ubuntu6.3.dsc
#dpkg-buildpackage -rfakeroot
#dpkg -i php5-gd_5.2.10.dfsg.1-2ubuntu6.3_i386.deb
#/etc/init.d/apache2 restart
After doing all the above also, I am unable to use imagefilter() function in php.

Pls, help me to fix this issue
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

PHP Fatal Errors During SSL Cert Management - PHP Fatal error: xc_fcntl_mutex failed

Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup. However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies

2. Emergency UNIX and Linux Support

Perl error: Can't call method "value" on an undefined value

Hi, I am running a perl script to automate a process and I keep running into a error can't find the "value" Can't call method "value" on an undefined value at process_file.pl line 44. file is CVS cell is ifdfdxrfmp.ksh Here is the script I have also attached it as well: ... (2 Replies)
Discussion started by: vpundit
2 Replies

3. Shell Programming and Scripting

After exit from function it should not call other function

Below is my script that is function properly per my conditions but I am facing one problem here that is when one function fails then Iy should not check other functions but it calls the other function too So anyone can help me how could i achieve this? iNOUT i AM GIVING TO THE... (1 Reply)
Discussion started by: rohit22hamirpur
1 Replies

4. Shell Programming and Scripting

error when call function in bash script

Dear all, Could you please advice as I when call function i found the following error " refills: command not found" note that refills is function name. following also the function and how i call it function refills { echo "formatting refills and telepin" >> $log awk -F,... (20 Replies)
Discussion started by: ahmed.gad
20 Replies

5. Programming

undefined reference to 'function'

Hi, i want to compile a code where fortran calls c . First I compiled C module ,it has pass by gcc. However, after generating .o file. I compiled C and fortran files together by intel fortran and it failed " undefined reference to 'vicerror'". vicerror is a function. I do not know why. (1 Reply)
Discussion started by: austinhsu
1 Replies

6. Infrastructure Monitoring

diffrence between method call and function call in perl

Hello, I have a problem with package and name space. require "/Mehran/DSGateEngineLib/general.pl"; use strict; sub System_Status_Main_Service_Status_Intrusion_Prevention { my %idpstatus; my @result; &General_ReadHash("/var/dsg/idp/settings",\%idpstatus); #print... (4 Replies)
Discussion started by: Zaxon
4 Replies

7. Shell Programming and Scripting

Function Call

Hi, I have a string corresponding to a function. How I can call that function without if statement? Thanks in advance. (4 Replies)
Discussion started by: Zaxon
4 Replies

8. Shell Programming and Scripting

Function Call

How we can start a process if doesn't exists before? (1 Reply)
Discussion started by: Zaxon
1 Replies
Login or Register to Ask a Question
IMAGECREATEFROMGD2PART(3)						 1						 IMAGECREATEFROMGD2PART(3)

imagecreatefromgd2part - Create a new image from a given part of GD2 file or URL

SYNOPSIS
resource imagecreatefromgd2part (string $filename, int $srcX, int $srcY, int $width, int $height) DESCRIPTION
Create a new image from a given part of GD2 file or URL. Tip A URL can be used as a filename with this function if the fopen wrappers have been enabled. See fopen(3) for more details on how to specify the filename. See the "Supported Protocols and Wrappers" for links to information about what abilities the various wrappers have, notes on their usage, and information on any predefined variables they may provide. PARAMETERS
o $filename - Path to the GD2 image. o $srcX - x-coordinate of source point. o $srcY - y-coordinate of source point. o $width -Source width. o $height -Source height. RETURN VALUES
Returns an image resource identifier on success, FALSE on errors. EXAMPLES
Example #1 imagecreatefromgd2part(3) example <?php // For this example we need the image size before $image = getimagesize('./test.gd2'); // Create the image instance now we got the image // sizes $im = imagecreatefromgd2part('./test.gd2', 4, 4, ($image[0] / 2) - 6, ($image[1] / 2) - 6); // Do an image operation, in this case we emboss the // image if PHP 5+ if(function_exists('imagefilter')) { imagefilter($im, IMG_FILTER_EMBOSS); } // Save optimized image imagegd2($im, './test_emboss.gd2'); imagedestroy($im); ?> NOTES
Note This function requires GD 2.0.1 or later (2.0.28 or later is recommended). PHP Documentation Group IMAGECREATEFROMGD2PART(3)