Giter Club home page Giter Club logo

Comments (2)

wvanbergen avatar wvanbergen commented on May 23, 2024

Unfortunately, ChunkyPNG is pure Ruby so it will always be relatively slow, especially for large images. In order to resize an image, it first needs to be loaded, so that is not going to help if you don't want to use RMgick.

Did you enable oily_png already? It replaces some of the slowest algorithms in ChunkyPNG with native/C implementations, making image loading and saving an order of magnitude faster. See https://github.com/wvanbergen/oily_png

Hope this helps.

Cheers,
Willem

On 2012-03-22, at 8:31 AM, Mario Ruiz wrote:

I have pictures of 1 mega and it takes like 20 seconds to load, any possibility to solve this?
how can i resize the picture beforehand? (not with RMagick)


Reply to this email directly or view it on GitHub:
#29

Willem van Bergen
Data team lead

from chunky_png.

MarioRuiz avatar MarioRuiz commented on May 23, 2024

Thank you!!!
it took to compare two pictures of 1 mega like 70 seconds and now... 9 seconds!!! :)
I'm taking a look at other libraries to see if it helps to resize the files before comparing them

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.