Bug #79287 [Csd->Nab]: imagewebp function quality parametter as no effect JPG only
| From: | cmb@php.net | Date: | Wed, 19 Feb 2020 17:43:36 +0000 |
| Subject: | Bug #79287 [Csd->Nab]: imagewebp function quality parametter as no effect JPG only | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225628@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79287&edit=1
ID: 79287
Updated by: cmb@php.net
Reported by: pierre at lookit dot fr
Summary: imagewebp function quality parametter as no effect
JPG only
-Status: Closed
+Status: Not a bug
Type: Bug
Package: GD related
Operating System: xubuntu 18.04.4 LTS
PHP Version: 7.2.27
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2020-02-19 16:46:57] pierre at lookit dot fr
After a lot of turn arround, it seems to be ok. Bug is not really one !
Jpg quality is functionnal. You just have to play with lowest or highest quality. exemple : when i
put a value of 30 i can see the changes, with 50 nothing appear. The size of the file is the same of
the original file.
------------------------------------------------------------------------
[2020-02-19 16:39:42] pierre at lookit dot fr
After news tests, it seems that this bug affect only JPG images
------------------------------------------------------------------------
[2020-02-19 16:20:37] pierre at lookit dot fr
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 this bug report at https://bugs.php.net/bug.php?id=79287&edit=1