Allow WEBP quality to be configurable in GD2 image manipulation toolkit settings

Created on 11 November 2022, about 3 years ago
Updated 6 April 2023, over 2 years ago

Problem/Motivation

According to php documentation when converting image to webp quality argument can be passed to set the quality of the image.
In gd.php default is set to 80% and there is no way to configure or change this value.
function imagewebp($image, $to = null, $quality = 80): bool {}

Steps to reproduce

Go to admin/config/media/image-toolkit
Select GD2 for image processing
Only JPEG quality is configurable not WEBP.

Proposed resolution

Make the quality settings configurable and pass the configured value to imagewebp().

User interface changes

When selected GD2 to process images add an additional field to take the WEBP quality value similar to ones taking JPEG.

Feature request
Status

Needs work

Version

10.1

Component
Image system 

Last updated 3 months ago

Created by

🇩🇪Germany majid.ali

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024