Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JPEG or other lossy image compression library needed [closed]

I've incorporated LIBPNG and ZLIB into my C software for a microcontroller project due to their nicely liberal license which permits such use without requiring me to disclose any of my code (it's very similar to BSD/MIT/APACHE, but with no attribution requirement).

I'd like to look at using lossy image compression to save memory. The JPEG code I've found is either GPL, LGPL, or not C. I cannot use LGPL, because that still requires me to make it possible for users to replace the library with a newer or different version, which is not possible for this project.

I'm hoping you know of a suitable lossy image compression library. It doesn't have to be JPEG (I control both encoding and decoding) but it does have to be C, and at most BSD licensed or similar (attribution is fine).

-Adam

like image 873
Adam Davis Avatar asked Dec 28 '25 14:12

Adam Davis


1 Answers

Try IJG (at ijg.org). It's high-quality JPEG code, written in C, with a BSD-style license. We've used it where I work, and are happy with it.

like image 70
David Thornley Avatar answered Dec 31 '25 06:12

David Thornley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!