View Full Version : Open-source JPEG reader/writer?

December 23rd, 2007, 05:12 PM
I'm interested in messing around with image processing/editing routines, etc, but I don't want to go through the trouble of writing a JPEG reader/writer.

Can anybody point me to an open-source c/c++ JPEG reader/writer? Something along the lines of a function that I can call, that'll return a simple 2D array of pixel info, then send it back (modified, perhaps) to be written to file...

December 23rd, 2007, 06:51 PM
Looks like this may be what I'm looking for:


December 23rd, 2007, 07:28 PM
this might be overkill, but SDL has an addon library called SDL_image which can read JPEGs (not sure how it writes them or if it can at all).

December 23rd, 2007, 07:48 PM
SDL_image uses IJG's libjpeg. AFAIK, most jpeg-using FOSS does. The OP found the right library for jpeg I/O (albeit using a strange search method!).

December 23rd, 2007, 08:12 PM
I was going to suggest ImageMagik, but not going to work with C++. Instead you might look at CImg (http://cimg.sourceforge.net/) which can actually use different image processing libraries.

February 17th, 2012, 11:47 PM
I was going to suggest ImageMagik, but not going to work with C++.

There's Magick++, http://www.imagemagick.org/Magick++/

February 17th, 2012, 11:54 PM