Git Product home page Git Product logo

Comments (5)

oliver-moran avatar oliver-moran commented on August 19, 2024

Can you post the smallest possible test case and I'll take a look? Thanks.

from jimp.

oliver-moran avatar oliver-moran commented on August 19, 2024

OK, I've done some testing. It's very easy to run out of memory doing something like this:

for (var i = 0; i < 10000; i++) {
    var lenna = new Jimp("lenna.png", function (err, image) {
        // asynchronous callback
    });
}

That's because you will really rapidly load 10,000 odd images into memory and try to work with them all at once. The correct thing to do is to load one image, work with it, and then (when you are done) load the next.

Is this what is happening for you?

from jimp.

vclteam avatar vclteam commented on August 19, 2024

im still checking it.
but at the moment im getting out of memory on 6 images running simultaneously. (all of them are less then 1 mb)

from jimp.

oliver-moran avatar oliver-moran commented on August 19, 2024

I've tested opening, manipulating and saving > 160,000 images. Didn't come across a leak.

Any joy on a test case?

from jimp.

vclteam avatar vclteam commented on August 19, 2024

looks ok

from jimp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.