JPEG or other lossy image compression library

I have included LIBPNG and ZLIB in my C software for the microcontroller project because of their very liberal license, which allows such use without the need for me to disclose any of my code (it is very similar to BSD / MIT / APACHE, but without attribution requirement) .

I would like to see how to use lossy compression to save memory. The JPEG code that I found is either GPL, LGPL, or not C. I cannot use LGPL because it still requires me to be able to replace the library with a newer or different version, which is impossible for this project.

I hope you know a suitable lossy image compression library. It should not be JPEG (I control both encoding and decoding), but it should be C, and no more than BSD licensed or similar (attribution is ok).

-Adam

+3
source share
3 answers

libjpeg ILJ at is a C source and is licensed under license.

http://www.ijg.org/

"We release this software for both non-commercial and commercial use. Companies can use it as the basis for JPEG-related products. We do not request royalties, although we ask for confirmation in the product literature ..."

Mike

+5
source

IJG ( ijg.org). JPEG-, C, BSD. , , .

+6

+1 in the Independent JPEG Group library .

  • This is in C
  • Highly portable
  • Small size
  • Liberal license
  • Highly rated
  • Widely used
  • Stable (last release was over 10 years ago)

Both Firefox and IE use IJG code for JPEG browsers. You cannot get much better.

+1
source

Source: https://habr.com/ru/post/1699239/


All Articles