Giter Club home page Giter Club logo

Comments (3)

CalebSordelet avatar CalebSordelet commented on June 11, 2024

At the moment the library could not possibly do this, it loads each of those images into a stream, the issue is an unsigned int has a maximum size of a little over 2,000,000,000 bytes while all of your 875 256x256 total up to much more than that, and that’s assuming that ruby had no memory allocation limit (which it does), but long story short it is more data than ruby can store in one stream, thus the NoMemoryException occurs because ruby cannot write anymore information to temporary memory. Theoretically the library could be rewritten to write the output as it receives input information, but it would be a lot of work to rewrite such a large portion of the gem. Hope this helps ;-)

from chunky_png.

Nakilon avatar Nakilon commented on June 11, 2024

Try the https://github.com/libvips/ruby-vips

from chunky_png.

wvanbergen avatar wvanbergen commented on June 11, 2024

Closing this, as this is not a memory leak as explained in #144 (comment)

While it could be possible to have a more memory efficient implementation to help with tasks like this, it would require a significant rewrite of large parts of the codebase, which is not something I am planning to do any time soon.

from chunky_png.

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.