Skip to content

Saving Lossless Webp? #857

Closed
Closed
@jcogs-design

Description

@jcogs-design

Issue description

Since php 8.1 the php GD library supports the saving of images in the webp lossless format using the construct:

imagewebp($image, 'image.webp', IMG_WEBP_LOSSLESS);

where IMG_WEBP_LOSSLESS is a constant set to the value 101.

The saveOrOutput method in the GD\Image.php class has an explicit check (line 734) to prevent the value of the quality parameter exceeding the bounds 0-100.

How in this case then can lossless webp images be saved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions