Comments (2)
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.
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)
- Image verification code
- Deocing PNG with 1 bit alpha is not supported HOT 1
- Flip image HOT 7
- example_bmp2png.cpp process 1bit bmp incorrectly HOT 1
- Warning from `-Wcast-qual`: cast discards `const` qualifier
- fatal error LNK1120: 4 unresolved externals HOT 1
- W64 HOT 2
- sdl2 HOT 6
- vulnerability Discover HOT 2
- what's mean of this define LODEPNG_NO_COMPILE_ANCILLARY_CHUNKS and when should i define it
- code optimization
- Че за хрень 64 бит компиляция HOT 1
- Sudden increase in build size HOT 1
- Memory leaks in function benchmark.
- SEGV on unknown address in function pngdetail. HOT 2
- How to get a JSON string from the encoded image ? HOT 3
- Expected speed? HOT 6
- Fix warnings: `conversion from 'size_t' to 'unsigned short', possible loss of data` HOT 2
- chunk type is restricted to the decimal values 65 to 90 and 97 to 122
- Veracode discovered a race condition
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lodepng.