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.
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] 삭제
몇 마디 만하겠습니다