Skip to content

Uint8Array image data support documented, but throws exception #1876

@ronny1982

Description

@ronny1982

Regarding documentation the addImage() method accepts Uint8Array.
However when using image data as Uint8Array the call to getImageFileTypeByImageData() fails.
This method assumes a binary-string? (at least no support for Uint8Array) and tries to call .charCodeAt() on the image data.

Either getImageFileTypeByImageData() shall support Uint8Array or
addImage() shall call getImageFileTypeByImageData() with the correct converted image data type.

debug

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