开发者

Imagick Wrong JPEG library version

开发者 https://www.devze.com 2023-01-17 18:35 出处:网络
I\'m trying to resize some images using PHP and Imagick, however when I do so I ge开发者_运维技巧t this error:

I'm trying to resize some images using PHP and Imagick, however when I do so I ge开发者_运维技巧t this error:

ImagickException: Wrong JPEG library version: library is 80, caller expects 62

There's very little on internet about the problem, although there are a few questions on stackoverflow about it. I can't see any solutions posted to any though.

Does anyone have a way of fixing this?


Never mind, I found the solution. I had compiled a later version of libjpeg at some point. I deleted /usr/local/lib/libjpeg*, reinstalled libjpeg and libjpeg-devel from yum, ran ldconfig, recompiled php and everything worked fine!

0

精彩评论

暂无评论...
验证码 换一张
取 消