Sign in to follow this  

Good Image I/O Library?

This topic is 3860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone recommend to me a good C++ library (or source code, I guess) for handling i/o of .raw image files? I've used QT for a while now but it doesn't handle .raw files. Thanks!

Share this post


Link to post
Share on other sites
DevIL (Developer's Image Library) loads/saves .raw files, along with a slew of other formats. It's easy to set up and use by itself or with OpenGL, and I've never had any problems with it that weren't solved with a quick google. It may be a little heavy if all you really need is the .raw functionality, though.

Share this post


Link to post
Share on other sites
I have to say that I find DevIL to be terrible. The API design is totally brain-dead--it follows the brain-dead design of OpenGL in having a "bound" image (ilBindImage) to which all further operations apply, instead of simply adding an image handle parameter to the relevant functions. Also, the documentation is rather incomplete.

That said, there aren't many lightweight alternatives. I'd look at CImg if I were you.

Share this post


Link to post
Share on other sites
Quote:
Original post by jouley
DevIL (Developer's Image Library) loads/saves .raw files, along with a slew of other formats. It's easy to set up and use by itself or with OpenGL, and I've never had any problems with it that weren't solved with a quick google. It may be a little heavy if all you really need is the .raw functionality, though.


I read their license, and I wonder if I have to make my source files available if I use their library? Or is it just the DevIL sources?

Share this post


Link to post
Share on other sites
Quote:
Original post by PureW
Quote:
Original post by jouley
DevIL (Developer's Image Library) loads/saves .raw files, along with a slew of other formats. It's easy to set up and use by itself or with OpenGL, and I've never had any problems with it that weren't solved with a quick google. It may be a little heavy if all you really need is the .raw functionality, though.


I read their license, and I wonder if I have to make my source files available if I use their library? Or is it just the DevIL sources?


AFAIK, you're fine as long as you link dynamically rather than statically. However, you would do better to ask for clarification from the DevIL team - or the Free Software Foundation.

Share this post


Link to post
Share on other sites
I've heard that Phantoms solution is good. However i have never used it and so i will have to recommend FreeImage as a good solution, though it's a bit heavy.

Dave

Share this post


Link to post
Share on other sites
I've tended to have trouble with DevIL. For example, it sometimes doesn't play nice with SDL in linux. And the last few times I tried it, it always threw an exception when trying to load a normal map (that other libraries and apps loaded just fine).

Share this post


Link to post
Share on other sites

This topic is 3860 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this