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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Fri Dec 27 09:01:29 2024 UTC