PDA

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



Sporkman
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...

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

http://www.faqs.org/faqs/jpeg-faq/part2/section-15.html

slavik
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).

wolfbone
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!).

KCPokes
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.

TJRC
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++/

nothingspecial
February 17th, 2012, 11:54 PM
http://img845.imageshack.us/img845/6976/necro2.png