php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66444 setImageInterlaceScheme doesn't make image progressive
Submitted: 2014-01-08 19:45 UTC Modified: 2014-02-13 16:31 UTC
From: compuchad+bugs dot php dot net at gmail dot com Assigned: vito (profile)
Status: Closed Package: gmagick (PECL)
PHP Version: Irrelevant OS:
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: compuchad+bugs dot php dot net at gmail dot com
New email:
PHP Version: OS:

 

 [2014-01-08 19:45 UTC] compuchad+bugs dot php dot net at gmail dot com
Description:
------------
Gmagick 1.1.6RC2

setImageInterlaceScheme() has no affect on the output of an image in the provided code. Regardless of which constant is used.

Attempted constants:
INTERLACE_UNDEFINED
INTERLACE_NO
INTERLACE_LINE
INTERLACE_PLANE

$img->getImageInterlaceScheme() does properly return the value of the constant previously set.

I've described this at StackOverflow as well http://stackoverflow.com/questions/20386954/why-doesnt-setimageinterlacescheme-make-a-jpeg-progressive

Test script:
---------------
    $img = new Gmagick();
    $img->setSize(900, 900)
        ->readImageBlob($image->getBytes())
        ->setImageInterlaceScheme(Gmagick::INTERLACE_PLANE)
        ->setImageResolution(96, 96)
        ->setImageFormat('jpeg')
        ->setCompressionQuality(70)
        ->resizeImage(900, 1351, Gmagick::FILTER_UNDEFINED, 1);

Expected result:
----------------
Output of a progressive jpeg

Actual result:
--------------
Output of a baseline jpeg

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-12 18:30 UTC] compuchad+bugs dot php dot net at gmail dot com
-: compuchad at gmail dot com +: compuchad+bugs dot php dot net at gmail dot com
 [2014-01-12 18:30 UTC] compuchad+bugs dot php dot net at gmail dot com
changed email address
 [2014-01-14 02:38 UTC] compuchad+bugs dot php dot net at gmail dot com
I can successfully make an image progressive from the command line with: gm convert in.jpg -interlace Line out.jpg
 [2014-02-13 16:31 UTC] vito@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: vito
 [2014-02-13 16:31 UTC] vito@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 [2014-03-12 01:38 UTC] lunaraccents at gmail dot com
I don't see how this bug is fixed. I have tried a hundred ways and Gmagick will NOT make a progressive JPEG image! If the bug is fixed please explain how to make JPEG progressive!!!
 [2014-03-18 21:04 UTC] compuchad+bugs dot php dot net at gmail dot com
You must use ->setInterlaceScheme(Gmagick::INTERLACE_LINE) for jpeg images. It isn't documented though.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 30 05:01:31 2024 UTC