Skip to content

willReadFrequently on getResult() canvas ? #287

Open
@Dylan190774

Description

@Dylan190774

In devtools console I get the following warning:

Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently

This happens when I use const result = this.$refs.cropper.getResult(); a few times after another and then do getImageData on the context of result.canvas

Any idea how to set willReadFrequently on the canvas of getResult ?

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