php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76395 Uncaught ImagickException: Wrong JPEG library version: library is 80, caller ex
Submitted: 2018-05-30 18:46 UTC Modified: 2018-06-18 10:30 UTC
From: 1210077683 at qq dot com Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 7.2.6 OS: ubuntu 16.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: 1210077683 at qq dot com
New email:
PHP Version: OS:

 

 [2018-05-30 18:46 UTC] 1210077683 at qq dot com
Description:
------------
Fatal error: Uncaught ImagickException: Wrong JPEG library version: library is 80, caller expects 90 `******/beauty.jpg' @ error/jpeg.c/JPEGErrorHandler/332 in *****/demo.php:8


Test script:
---------------
<?php

$img = new Imagick(realpath('beauty.jpg'));
$format = $img->getFormat();
var_dump($format);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-06-18 10:30 UTC] danack@php.net
-Status: Open +Status: Not a bug
 [2018-06-18 10:30 UTC] danack@php.net
This is not going to be a bug in the Imagick code. Or Imagick at all.

This is a bug where you've almost certainly installed a version of ImageMagick that was compiled against a JPEG library of '90' but your system has the JPEG library of '80'.

You'll need to install all of the libraries that interact with each other (imagick, ImageMagick and the libraries that ImageMagick uses) from a single source, rather than mixing and matching.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 16:02:26 2025 UTC