php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #58659 Return value of getCompressionQuality()
Submitted: 2009-04-30 18:20 UTC Modified: 2009-05-01 04:00 UTC
From: pecl at szara dot waw dot pl Assigned:
Status: Not a bug Package: imagick (PECL)
PHP Version: 5.2.9 OS: Linux
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: pecl at szara dot waw dot pl
New email:
PHP Version: OS:

 

 [2009-04-30 18:20 UTC] pecl at szara dot waw dot pl
Description:
------------
For JPEG images created from a file getCompressionQuality() returns 0. (It returns a correct value following a call to setCompressionQuality).
Now I may be naive here and perhaps it is not possible to get that value once the image is compressed - in which case just close this bug.

Reproduce code:
---------------
$image = new Imagick($jpg_file_name);
echo $image->getCompressionQuality();

Expected result:
----------------
Some value for compression Quality

Actual result:
--------------
0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-30 18:48 UTC] mkoppanen@php.net
Thank you for taking the time to write to us, but this is not
a bug.

Try getImageCompressionQuality()
 [2009-05-01 04:00 UTC] pecl at szara dot waw dot pl
Thanks for pointing this out. I would have used it but missed the "Image" variant as it is completely missing from the PHP documentation. Will look at source first next time.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC