Questions tagged [gd]
34 questions
                    
                    12
                    
            votes
                
                2 answers
            
        How to install GD library in php?
when I tried to use imagefromjpeg() function in PHP,it throwed error.So, I tried to install GD library using the following command:
sudo apt-get install php5-gd
But I got the following error.
 php5-gd : Depends: php5-common (= 5.5.9+dfsg-1ubuntu4)…
        
        Ganesh Babu
        
- 223
 - 1
 - 2
 - 6
 
                    4
                    
            votes
                
                1 answer
            
        Installing GD Perl module on Ubuntu 16
I'm trying to get the GD.pm Perl module installed on my server. I get this error when trying to install with cpanm:
Please install libgd 2.0.28 or higher.
I did some research, and people suggest trying to run apt-get install perl-GD, but as you can…
        
        Andrew Newby
        
- 1,041
 - 1
 - 22
 - 48
 
                    4
                    
            votes
                
                3 answers
            
        php5-gd shows in "php -i | grep -i gd" but not in phpinfo();
I am trying to enable GD in my installation of Apache2, PHP5 and MySQL on my Ubuntu server.  
I installed php5-gd with:
apt-get install php5-gd
And when I run php -i I get:  
gd
GD Support => enabled
GD Version => 2.0
FreeType Support =>…
        
        Qzen
        
- 43
 - 1
 - 4
 
                    4
                    
            votes
                
                1 answer
            
        Add image support to GD on Debian
I've recently replaced our aging (386) monitoring machine with something a bit more recent and because I had driver issues with CentOS I decided to use Debian 6 (Squeeze) instead. While in the past I've preferred to compile from source this time I…
        
        John Gardeniers
        
- 27,262
 - 12
 - 53
 - 108
 
                    4
                    
            votes
                
                4 answers
            
        Do I have to recompile php to enable GD Library?
I have a GD library on my server installed and 'enabled' but under the Configure Command in php.info it says 
"--without-gd"
Is there a way to enable it through root or do I have to recompile?
EDIT: This is what it shows below under "GD"
  
GD…
        
        Matt Nathanson
        
- 41
 - 1
 - 3
 
                    3
                    
            votes
                
                2 answers
            
        Compiling PHP with GD and libjpeg support
I compile my own PHP, partly to learn more about how PHP is put together, and partly because I'm always finding I need modules that aren't available by default, and this way I have control over that.
My problem is that I can't get JPEG support in…
        
        Robin Winslow
        
- 209
 - 1
 - 3
 - 11
 
                    3
                    
            votes
                
                1 answer
            
        How do I enable JPEG Support for PHP?
My Configure Command doesn't say anything about jpg, nor gif/png, but I can see gif/png support in the output of phpinfo(). 
I built PHP with --with-gd, but only GIF Support and PNG Support are in the output of phpinfo(), how do I enable JPEG…
        ngache
                    2
                    
            votes
                
                3 answers
            
        Installing GD Library on Centos 6.7 and PHP 5.4
Versions:
centos-release-6-7.el6.centos.12.3.x86_64
PHP 5.4.45
Installed GD using yum:
$ yum install php54w-gd
Installed: php54w-gd.x86_64 0:5.4.45-2.w6 
Restarted:
$ service httpd restart
Checked
Running: $ rpm -qa | grep php
I get:…
        
        keeg
        
- 419
 - 2
 - 6
 - 11
 
                    2
                    
            votes
                
                2 answers
            
        php-gd installed but gd not showing up in phpinfo on CentOS 5.3 server running nginx
Logged in as root, I installed the php-gd libraries using
$ yum install php-gd
it said everything worked fine, so i did
$ /etc/init.d/nginx restart
But the code I had been working on still complained of not having the gd libraries and when I went…
        
        Neil Sarkar
        
- 273
 - 1
 - 4
 - 10
 
                    2
                    
            votes
                
                1 answer
            
        GD Library not working even though it is enabled in phpinfo()
I am hoping someone here can give me some advice about why my GD Library does not seem to be working even though it is installed and enabled in phpinfo()
Here is a quick rundown of what I am using:
PHP 5.5.16 
Ubuntu 12.04 
GD 2.1.1-dev (have tried…
        
        user3366811
        
- 21
 - 2
 
                    1
                    
            vote
                
                1 answer
            
        Unable to install PHP-GD on Centos 7 with PHP 5.6.40
I have a PHP 5.6.40 server on which I am trying to install/enable the GD image library....with no success.
I've tried to install the following package
yum install php-gd
yum install php5-gd
yum install php56-php-gd
The first package (php-gd) errors…
        
        James Stoddern
        
- 13
 - 1
 - 3
 
                    1
                    
            vote
                
                1 answer
            
        Cannot install Perl GD module on CentOS
# cpan install GD
...
GD-2.56/lib/GD/Polyline.pm
CPAN: YAML loaded ok (v0.90)
CPAN: CPAN::Meta::Requirements loaded ok (v2.131)
CPAN: Parse::CPAN::Meta loaded ok (v1.4414)
CPAN: CPAN::Meta loaded ok (v2.143240)
CPAN: Module::CoreList loaded ok…
        
        Chloe
        
- 1,094
 - 4
 - 16
 - 34
 
                    1
                    
            vote
                
                0 answers
            
        PHP gd JPEG image support missing
I have a centos 7 server and need multiple versions of PHP. I am compiling PHP 5.6 and the php application needs to support GD Jpeg. I have the following error.
./configure --prefix=/opt/php-5.6.28 .... --with-freetype-dir --with-freetype-dir…
        
        Christovam
        
- 31
 - 5
 
                    1
                    
            vote
                
                1 answer
            
        Error when installing php-gd
I installed php with the remi repo and now I want to install php gd. 
I've tried to install php-gd for my CentOS 7 but I got this error:
sudo yum install php-gd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 *…
        
        VaTo
        
- 191
 - 4
 - 20
 
                    1
                    
            vote
                
                1 answer
            
        Trying to install gd, getting conflict error
I am trying to install gd using sudo yum install php-gd but I get the error below. I know I have ran into this problem before but I can't seem to recall how I got around it. Am I in the wrong directory? Did I update PHP incorrectly at some point? My…
        
        EvWill
        
- 11
 - 1
 - 2