Upgrade php5-gd on 12.04

Philippe

I'm aware there's already a post with the same title, but my question is different: as I explain it in a Stack Overflow post, I need to use a more recent version of php-gd in my 12.04 Ubuntu than the one shipped by apt-get, and as my system skills are kind of poor, I don't know how to do that (I think I need to somehow modify my packages repositories, but... well I don't know how).

To be clear, in my OSX dev machine, I have a "bundled (2.1.0 compatible)" GD version, with a 1.6.2 libPNG version. And in my Ubuntu prod server, I'm stuck with GD 2.0.36 (see php-info). Can I upgrade this, and how?

By the way, the reason of this is explained in the Stack overflow post linked at the top: I have a huge quality difference in PNG resizing, and it seems GD is the cause of it.

Thanks a lot.

kamil

First, You have to follow this question and install your needed version of PHP that supports GD version 2.1.0

then you can install your needed GD version accordingly

 sudo apt-get install php5-gd

NOTE: php5.4 isn't compatible with GD>=2.1.0

I got this from this question although it seems he has installed both GDs in the same machine

libgd2-xpm                                   
2.0.36~rc1~dfsg-6ubuntu2                GD Graphics Library version 2 ii  libgd2-xpm:i386                              
2.0.36~rc1~dfsg-6ubuntu2                GD Graphics Library version 2 ii  libgd3                                        
2.1.0-2~precise+1    GD Graphics Library       php5-gd                                      
5.4.17-4+debphp.org~precise+1           GD module for php5

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Upgrade PCRE version on Ubuntu with PHP5

분류에서Dev

PHP5 오류 .. 동적 라이브러리 gd.so를로드 할 수 없음

분류에서Dev

upgrade 11 to 12 still boots 11

분류에서Dev

PHP GD resize/crop image before uploading

분류에서Dev

Ubuntu 16 php5.6 gd extension

분류에서Dev

php gd copy image quality, fall, why?

분류에서Dev

Debian: php and php5

분류에서Dev

Apache Cannot load modules / libphp5.so into server : when I installed php5-gd

분류에서Dev

Docker-PHP 5.2.17 및 php-gd 설치

분류에서Dev

PHP GD의 여러 학위 색상

분류에서Dev

how to show square root symbol in php code using gd library?

분류에서Dev

PHP GD : 채워진 경로 그리기?

분류에서Dev

PHP / GD로 사진 색상 화

분류에서Dev

PHP GD : 이미지 표시 실패

분류에서Dev

php7.1-gd 설치 문제

분류에서Dev

PHP gd 세로 텍스트 이미지

분류에서Dev

12.04에서 php5-gd 업그레이드

분류에서Dev

우분투 12; 04에 nmap을 설치하는 방법

분류에서Dev

우분투 12; 04에 nmap을 설치하는 방법

분류에서Dev

Spreadsheet_Excel_Writer for Php5

분류에서Dev

php5 $ _SESSION 보안

분류에서Dev

PHP5에 SqLite 추가

분류에서Dev

2015-12-04 17:02:10 +00 : 00 시간을 마이크로 초로 변환

분류에서Dev

Purpose of php and php5 directories in /usr/share

분류에서Dev

PHP GD가 잘못된 이미지를 만듭니다.

분류에서Dev

PHP 이미지 업로드 보안-gd / imagick / move_upload_file

분류에서Dev

PHP Codeigniter-이미지 조작-GD2 사용

분류에서Dev

이미지에 텍스트 맞추기 PHP GD

분류에서Dev

PHP, GD 라이브러리가 작동하지 않음