jimp-dev/jimp

Failing to read large files

Open

#915 opened on Jul 24, 2020

View on GitHub
 (31 comments) (18 reactions) (0 assignees)JavaScript (785 forks)batch import
bughelp wantedsolution in issue

Repository metrics

Stars
 (13,218 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I'm trying to use Jimp to process images that are about 70-100 MB in size. However, I get the following error

// image is 87.7 MB
Jimp.read('big-image', (err, img) => {
  console.log(err)
})
> Error: maxMemoryUsageInMB limit exceeded by at least 226MB

Is there any way around this?

Contributor guide