Skip to content

canvas.toBuffer("image/jpeg") still makes a PNG #16

Description

@jtoppine

According to types.ts and lib.js, toBuffer() should accept type argument and support "image/png" as well as "image/jpeg". However, a PNG image is created even if "image/jpeg" is specified.

PNG's can be pretty big for photos, JPG would be nice to have thumbnail creation and such.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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