Skip to content

IMG_SaveWEBP treats quality=100 as lossless #703

@po-87

Description

@po-87

The docs for IMG_SaveWEBP says the following about the quality parameter:

between 0 and 100. For lossy, 0 gives the smallest size and 100 the largest. For lossless, this parameter is the amount of effort put into the compression: 0 is the fastest but gives larger files compared to the slowest, but best, 100.

But there is no way to specify whether the image should be saved as lossless or not. Instead SDL uses lossless if quality is 100, and lossy otherwise. I don't know if this is intentional but it should at least be reflected in the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions