Skip to content

getBuffer expects a string, but it could also be a number - if using AUTO constant #990

@olliechick

Description

@olliechick

The getBuffer function expects a string type for the parameter mime, but a number is actually a valid input - if it is the constant AUTO.

https://github.com/oliver-moran/jimp/blob/7d3fc67abf1bcb4c502a1b404decafb31b2dd0a9/packages/core/src/utils/image-bitmap.js#L195

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugthere is a bug in the way jimp behaveshelp wantedreleasedThis issue/pull request has been released.solution in issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions