Bug #79287 [NEW]: imagewebp function quality parametter as no effect
| From: | pierre at lookit dot fr | Date: | Wed, 19 Feb 2020 16:20:37 +0000 |
| Subject: | Bug #79287 [NEW]: imagewebp function quality parametter as no effect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225624@lists.php.net to get a copy of this message | ||
From: pierre at lookit dot fr
Operating system: xubuntu 18.04.4 LTS
PHP version: 7.2.27
Package: GD related
Bug Type: Bug
Bug description:imagewebp function quality parametter as no effect
Description:
------------
When i change the quality parameter in the imagewebp function, the image
returned is exactly the same. This parameter seems to have no effect on
the conversion process. I've tested with jpeg and png images files. The
file is well converted, but when i change the quality parameter to
another value, nothing appear to change on image resulted.
Test script:
---------------
$destination = '1.webp';
$origine = '1.png';
@$webp = imagewebp(imagecreatefrompng($origine), $destination);
$destination = '2.webp';
$origine = '2.jpg';
@$webp = imagewebp(imagecreatefromjpeg($origine), $destination);
$destination = '3.webp';
$origine = '1.png';
@$webp = imagewebp(imagecreatefrompng($origine), $destination,50);
$destination = '4.webp';
$origine = '2.jpg';
@$webp = imagewebp(imagecreatefromjpeg($origine), $destination, 50);
//Ok after that i open results in photoshop for a deeper analyse on
change....but nothing appear to have changed !!!
--
Edit bug report at https://bugs.php.net/bug.php?id=79287&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79287&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79287&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79287&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79287&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79287&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79287&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79287&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79287&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79287&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79287&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79287&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79287&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79287&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79287&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79287&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79287&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79287&r=mysqlcfg