Skip to content

The CSS “filter” property does not apply to canvas on Safari #2

@Botato300

Description

@Botato300

When uploading an image, the CSS filter property applied to the canvas does not work due to a browser bug in Safari.

Problem line:

ctx.filter = "contrast(100)";

According to this table, it is not supported in Safari and in the iOS WebView:
https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D#browser_compatibility

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions