php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63912 imagick doesn't work after upgrade of ImageMagick
Submitted: 2013-01-05 20:35 UTC Modified: 2014-12-30 10:41 UTC
From: omega13a at yahoo dot com Assigned: mkoppanen (profile)
Status: No Feedback Package: imagick (PECL)
PHP Version: 5.4.10 OS: Fedora 14
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: omega13a at yahoo dot com
New email:
PHP Version: OS:

 

 [2013-01-05 20:35 UTC] omega13a at yahoo dot com
Description:
------------
Last night, I upgraded ImageMagick to 6.8.1 patch 8 from 6.8.1 patch 3. This morning, I discovered a lot of errors on my website that are related to imagick. I tried recompiling imagick against the new version of ImageMagick to see if that would solve the problem. It didn't. Everything was perfectly fine before upgrading ImageMagick.

Test script:
---------------
<?php
$image = new Imagick("./textures/medres/geographos.jpg");
$image->scaleImage(732, 366, true);
$image->setImageFormat("jpeg");
$image->setImageCompressionQuality(100);
$image->writeImage($thumb);
header("Content-type: image/jpeg");
echo $image;

Expected result:
----------------
(this is just one example. There are currently many more on my website...)

http://www.fedtrek.com/staff/omega13a/celestia/catalog/index.php?mode=surface_map&type=moon&num=11&parent_id=43787&star=139 should display a scaled version of this image: http://www.fedtrek.com/staff/omega13a/celestia/catalog/textures/medres/geographos.jpg

Actual result:
--------------
http://www.fedtrek.com/staff/omega13a/celestia/catalog/index.php?mode=surface_map&type=moon&num=11&parent_id=43787&star=139 showed:

( ! ) Fatal error: Uncaught exception 'ImagickException' with message 'Empty input file `/var/www/clients/client1/web1/web/staff/omega13a/celestia/catalog/textures/medres/geographos.jpg' @ error/jpeg.c/JPEGErrorHandler/318' in /var/www/clients/client1/web1/web/staff/omega13a/celestia/includes/surface_map.php on line 84
( ! ) ImagickException: Empty input file `/var/www/clients/client1/web1/web/staff/omega13a/celestia/catalog/textures/medres/geographos.jpg' @ error/jpeg.c/JPEGErrorHandler/318 in /var/www/clients/client1/web1/web/staff/omega13a/celestia/includes/surface_map.php on line 84
Call Stack
#	Time	Memory	Function	Location
1	0.0008	126068	{main}( )	../index.php:0
2	0.0043	184564	include( '/var/www/clients/client1/web1/web/staff/omega13a/celestia/includes/content_page.php' )	../index.php:8
3	0.0439	3771408	require( '/var/www/clients/client1/web1/web/staff/omega13a/celestia/includes/surface_map.php' )	../content_page.php:106
4	0.0520	3763644	Imagick->__construct( '/var/www/clients/client1/web1/web/staff/omega13a/celestia/catalog/textures/medres/geographos.jpg' )	../surface_map.php:84

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-12-03 11:28 UTC] mike@php.net
-Assigned To: +Assigned To: mkoppanen
 [2013-12-03 12:54 UTC] mkoppanen@php.net
Is this still an issue?
 [2013-12-03 12:54 UTC] mkoppanen@php.net
-Status: Assigned +Status: Feedback
 [2014-12-30 10:41 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 30 08:01:24 2021 UTC