Skip to content

Add an optional pass to clamp premultiplied alpha #23

@hpjansson

Description

@hpjansson

We should be able to clamp passed-in premultiplied alpha values to be at least the same magnitude as the color channels. This may not already be the case if the user provides a corrupt image.

It'll slow us down, so there should be a SMOL_DISABLE_ALPHA_CLAMP flag for performance freaks like yours truly.

Metadata

Metadata

Assignees

Labels

apifeatureNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions