I use the intervention/image library (which use GD) for my Laravel 4.1 project to resize some images (jpg and png). Everything is great on dev server, but in production, the quality of the thumbnails is very poor.
I thought it was a GD problem, but here are the installed versions, and they look similar to me:
dev : OSX Mavericks, php 5.4.19
- GD Support : enabled
- GD Version : bundled (2.1.0 compatible)
- FreeType Support : enabled
- FreeType Linkage : with freetype
- FreeType Version : 2.4.10
- T1Lib Support : enabled
- GIF Read Support : enabled
- GIF Create Support : enabled
- JPEG Support : enabled
- libJPEG Version : 8
- PNG Support : enabled
- libPNG Version : 1.6.2
- WBMP Support : enabled
- XBM Support: enabled
prod : Ubuntu 12.04, php 5.4.25
- GD Support : enabled
- GD Version : 2.0.36
- FreeType Support : enabled
- FreeType Linkage : with freetype
- FreeType Version : 2.4.8
- GIF Read Support : enabled
- GIF Create Support : enabled
- JPEG Support : enabled
- libJPEG Version : unknown
- PNG Support : enabled
- libPNG Version : 1.2.46
- WBMP Support : enabled
Am I missing something with those configs? Can somebody figures another problem?
Thanks a lot.
Edit: add code sample:
$image = Image::make(public_path("data/Bandeau/2/picto-sylvestre.png"))->resize(null, 70, true);
And as an example, thumb result on "prod" server is here (source image). On dev server, result is a lot better : example here (ok, I admit "a lot" is a little exaggerated, but on some image it's more obvious, and even on this one look at the thin lines around the eyes).