Skip to content

error: maxMemoryUsageInMB limit exceeded when decoding large jpegs #57

@bennlich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions