I've followed this tutorial to install and support PHP-5.6 at my ISPConfig3 server: https://www.howtoforge.com/tutorial/how-to-install-php-5-6-on-ubuntu-16-04/.
The installation is up and running, now I want to change the php-gd library version. PHP info actually reports:
GD Support enabled
GD Version bundled (2.1.0 compatible)
I need to use the following version:
GD Support enabled
GD headers Version 2.2.3
GD library Version 2.2.3
Why do i need to upgrade?
I'm facing problems when cropping images, but is only on this server. I've a similar server with PHP-5.6, without fpm, that is working fine. I realized the difference in versions after compare the phpinfo() reports from both servers
Expected Behavior
- User uploads an image. The image can have any dimension. (eg: 1920x1080)
- The script resizes the image. (eg: from 1920px to 1200px)
- The resized image maintain it's original aspect ratio and should not be cropped. See: https://i.stack.imgur.com/YW8N4.jpg
The problem
- User uploads an image. The image can have any dimension. (eg: 1920x1080)
- The script SHOULD resize the image. (eg: from 1920px to 120px)
- The final image was cropped erroneously :( See: https://i.stack.imgur.com/aKwxQ.jpg
Since i'm using php-fpm, how can i upgrade my GD library version?