Saving an image as a jpg library?

I would like to find a library for writing in JPEG format, which can be statically linked (so there are no dependencies between DLLs). No readability in JPEG format.

Edit: I got a LibGD job, but it had one problem, described here:

LibGD library does not work: crash while saving image

+4
source share
3 answers

Have you watched LibGD ? I can not find the license, but you also did not specify the requirement.

+1
source

libjpeg is the most popular jpegs preservation library, but it can be a little painful to use.

Edit, here is a simple example on how to use it. Find the juce_writeJPEGImageToStream function.

+3
source

If you run your application on Windows, you should use the standard GDI + built-in library provided by Microsoft. Every computer running XP or later has this library.

GDI + is intended to replace GDI, which is probably already in use, whether you know it or not, but it can coexist with GDI calls provided that you flush buffers when switching between them. Cm:

http://www.cpjj.net/Miscellaneous/CreateJPEGFromDC.htm

(Hans Passant - you should have written your comment as an answer).

+1
source

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


All Articles