0

I have problem with GD - it creates blurry images on my dotdeb nginx+fpm server. I checked phpinfo and the difference is that the working servers show "libjpeg version: unknown". This faulty one shows "libjpeg version: 8". see this diff (please note that the exact same code works fine on localhost and apache and breaks on nginx)

Is there a way how to use dotdeb php5-gd without libjpeg (as I do on my Apache server and on localhost), that works fine. Or is is because of a wrong configuration somewhere else?

Tomáš Fejfar
  • 147
  • 1
  • 9
  • How are you creating the images? This is more likely an issue with your code. – Michael Hampton Mar 31 '14 at 20:13
  • Thank you for pointing me the right direction. It was actually because I was using `imageconvolution($this->getImageResource(), array( array( -1, -1, -1 ), array( -1, 24, -1 ), array( -1, -1, -1 ),), 16, 0);` ... question is why did it work before?! – Tomáš Fejfar Mar 31 '14 at 22:07
  • You'll have to ask that one on [so], I suspect. :) – Michael Hampton Mar 31 '14 at 22:08
  • not sure - the question would probably be "why does it work without libjpeg but not with" and the answer would be "it's obviously a server configuration issue, ask on serverfault" :D – Tomáš Fejfar Mar 31 '14 at 22:10
  • I doubt that you are actually _without_ libjpeg. But since you didn't provide any information about the PHP build, it's really impossible for us to know. – Michael Hampton Mar 31 '14 at 22:16
  • I'll be happy to provide anything that would help you: `PHP Version => 5.5.10-1~dotdeb.1` - I haven't build the php myself - i used at repo from dotdeb – Tomáš Fejfar Apr 01 '14 at 07:37
  • The build of the "working" server is more interesting. – Michael Hampton Apr 01 '14 at 12:05

0 Answers0