Skip to content

error: maxMemoryUsageInMB limit exceeded when decoding large jpegs #57

Description

@bennlich

getPixels() fails on large jpeg inputs with error: maxMemoryUsageInMB limit exceeded.

This error seems to come from jpeg-js, which accepts an options object for overriding the default memory limit: https://github.com/jpeg-js/jpeg-js#decode-options.

One solution would be to remove this limit altogether by always passing in an enormous value for maxMemoryUsageInMB when calling jpeg-js.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions