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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 21:01:29 2024 UTC