Code Monkey home page Code Monkey logo

Comments (2)

cosinekitty avatar cosinekitty commented on July 21, 2024

Out of curiosity, do you need to convert just one large PNG image, or do you need software to automatically do so repeatedly? If the latter, does your system have enough memory to load 4MB+ images? Are the images already square (same width and height)? If not, how do you propose to convert them to 100x100, by cropping or stretching?

I am not the author of lodepng, but I doubt it makes sense to add such functionality to lodepng directly because there are too many variations. The beauty of lodepng is its limited scope; it does a very simple thing and does it very well without overhead of feature bloat. However, it might make sense for someone to write a separate library to perform resizing that depends on lodepng.

from lodepng.

lvandeve avatar lvandeve commented on July 21, 2024

Hi,
Resizing an image is its own specialized topic, LodePNG is focused on decoding/encoding PNG images, while resizing is out of scope. For more information on image rescaling, see for example https://en.wikipedia.org/wiki/Image_scaling. A popular library from the top of my head that can do it is imagemagick, but many other libraries and implementations can be found online.
I hope that helps. Since rescaling is out of scope for this library I'll close this issue.

from lodepng.

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.