Skip to content

feat(wasm-image-processor): allow .webp, .avif input files to loadImage #214

@igorbrasileiro

Description

@igorbrasileiro

Feature Request

As title says, to allow more file types for loadImage function.

If applicable, also try to get file type from response.headers 'content-type'.

I used bug described here #213, and I faked a .webp file url like the snippet below to loadImage, then applied the resize and it worked.

const image = loadImage('https://myfile.com/file.webp?ext=.jpg')
const resized = image.resize(200, 200, false)

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