php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77127 A bug on Imagick::setImageCompressionQuality()
Submitted: 2018-11-08 21:42 UTC Modified: 2021-03-16 13:39 UTC
From: vhpvhp at msn dot com Assigned: cmb (profile)
Status: Duplicate Package: imagick (PECL)
PHP Version: 7.2.12 OS: Windows
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: vhpvhp at msn dot com
New email:
PHP Version: OS:

 

 [2018-11-08 21:42 UTC] vhpvhp at msn dot com
Description:
------------
http://php.net/manual/imagick.setimagecompressionquality.php

For a PNG image, Imagick::setImageCompressionQuality() is not work at all, length of the generated files are totally same, only a few bytes are different.

But if use Imagick::setOption('png:compression-level', 9), the value range is 0-9, it will works.

So I think it's a bug on Imagick::setImageCompressionQuality().


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-08 22:34 UTC] cmb@php.net
-Package: *Graphics related +Package: imagick
 [2018-11-09 08:04 UTC] a at b dot c dot de
What quality settings are you trying? Do you have a sample image to demonstrate with? (Note how the quality setting affects PNG compression: https://imagemagick.org/script/command-line-options.php#quality).
 [2021-03-16 13:39 UTC] cmb@php.net
-Status: Open +Status: Duplicate -Assigned To: +Assigned To: cmb
 [2021-03-16 13:39 UTC] cmb@php.net
This is already tracked as Github issue[1], so I'm closing this
ticket as duplicate.

[1] <https://github.com/Imagick/imagick/issues/176>
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 04:01:28 2025 UTC