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
 [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-2020 The PHP Group
All rights reserved.
Last updated: Fri Aug 07 14:01:26 2020 UTC