<p>Do you know any open source/free software C++ libraries to manipulate images in these formats:
.jpg .gif .png .bmp ? The more formats it supports, the better. I am implementing a free program in C++ which hides a text file into one or more images, using <a href="http://en.wikipedia.org/wiki/Steganography" rel="nofollow noreferrer">steganography</a>.</p>

<p>I am working under Unix.</p>

[{'answer_id': 41657, 'author': 'Kevin Fairchild', 'author_id': 3743, 'author_profile': 'https://Stackoverflow.com/users/3743', 'pm_score': 0, 'selected': False, 'text': '<p>Have you considered <a href="http://www.codeproject.com/KB/GDI-plus/cgdiplusbitmap.aspx" rel="nofollow noreferrer">GDI</a>?</p>\n\n<p>-- Kevin Fairchild</p>\n'}, {'answer_id': 41662, 'author': 'Jim Buck', 'author_id': 2666, 'author_profile': 'https://Stackoverflow.com/users/2666', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://freeimage.sourceforge.net/" rel="nofollow noreferrer">FreeImage</a> is pretty solid. It has a C interface but is more C++-like in its implementation.</p>\n'}, {'answer_id': 41668, 'author': 'Huppie', 'author_id': 1830, 'author_profile': 'https://Stackoverflow.com/users/1830', 'pm_score': 4, 'selected': True, 'text': '<p><a href="http://www.imagemagick.org/" rel="noreferrer">ImageMagick</a> can manipulate about anything and has interfaces for a <a href="http://www.imagemagick.org/script/api.php" rel="noreferrer">dozen of languages</a>, including the <a href="http://www.imagemagick.org/Magick++/" rel="noreferrer">Magick++</a> API for C++.</p>\n'}, {'answer_id': 41673, 'author': 'Moe', 'author_id': 3051, 'author_profile': 'https://Stackoverflow.com/users/3051', 'pm_score': 0, 'selected': False, 'text': '<p>I like <a href="http://vxl.sourceforge.net/" rel="nofollow noreferrer">vxl</a></p>\n\n<blockquote>\n  <p>VXL (the Vision-something-Libraries) is a collection of C++ libraries designed for computer vision research and implementation. It was created from TargetJr and the IUE with the aim of making a light, fast and consistent system. VXL is written in ANSI/ISO C++ and is designed to be portable over many platforms.</p>\n</blockquote>\n'}, {'answer_id': 41685, 'author': 'Thomas Owens', 'author_id': 572, 'author_profile': 'https://Stackoverflow.com/users/572', 'pm_score': 2, 'selected': False, 'text': "<p>@lurks: I assume that you are looking for LSB shifting? I did some stego work a couple of years ago, and that's how it appeared most apps worked. It appears that ImageMagick (suggested by others) allows you to identify and manipulate the LSBs.</p>\n"}, {'answer_id': 74413, 'author': 'Max Lybbert', 'author_id': 10593, 'author_profile': 'https://Stackoverflow.com/users/10593', 'pm_score': 1, 'selected': False, 'text': '<p>It takes some setting up, but I\'m a fan of <a href="http://opensource.adobe.com/wiki/display/gil/Generic+Image+Library" rel="nofollow noreferrer">Adobe\'s GIL</a> (now part of <a href="http://www.boost.org/doc/libs/1_36_0/libs/gil/doc/index.html" rel="nofollow noreferrer">Boost</a>).</p>\n'}, {'answer_id': 82048, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': "<p>For .png images you could look into Cairo (and CairoMM). There's also Anti-Grain which people consider very fast.</p>\n"}]
['https://Stackoverflow.com/questions/41654', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1876/']