lvandeve / lodepng

PNG encoder and decoder in C and C++.
zlib License
2.08k stars 425 forks source link

Request: Standalone encoder #150

Closed crazybob closed 3 years ago

crazybob commented 3 years ago

We don't need decoding in our embedded system. Thank you for the great code!

lvandeve commented 3 years ago

You can pass a macro LODEPNG_NO_COMPILE_DECODER to the compiler to disable all the decoder code with #ifdefs. There are more features that you can disable such as the text of the error messages, take a look near the top of lodepng.h. Does that work?

crazybob commented 3 years ago

Perfect, thank you!