• Advertisement

Archived

This topic is now archived and is closed to further replies.

Reading / writing JPEG's, GIF's or PNG's, how?

This topic is 5556 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

Hello, Reading and writing bmp''s is really simple, but now I want to use a format that is less space-consuming. So the question that I am going to ask is really simple, I am just hoping on a clever answer. How can I read/write JPEG''s, GIF''s and PNG''s? I am not expecting huge sourcecode-snippets, but maybe you know a link to a nice website that I can visit to start on the subject. And maybe more general: what is the best way to find info on a fileformat? Using google always gives bad results. I end up on sites who are offering programs to edit them. But that is not what I want. Thanks for reading my post, and maybe you can help me...

Share this post


Link to post
Share on other sites
Advertisement
libjpeg and libpng.

both come with readme files that walk you through creating a function to load/save in appropriate formats.

edit: gifs are evil, why would you want to use them anyway?

[edited by - niyaw on December 7, 2002 8:10:44 AM]

Share this post


Link to post
Share on other sites
The SDL library SDL_image can load many file types (tga with alpha channel comes to mind).

Share this post


Link to post
Share on other sites

  • Advertisement