Check out DevIL at openil.sourceforge.net/
It is built on top of ZLib, libPNG, libJPEG and many others...
It gives you an abstract image loading interface that is capable of the needs you described (loading from file, memory, etc...).
ZLIB vs JPG and PNG
DevIL is overkill and in my experience it adds noise to JPG's when it loads them. The intel library is much better for JPG's although they no longer offer that for free.
Anyway, I've thoroughly read through the libPNG manual and researched the PNG format, and have determined that I should be able to hack it into providing all of the features I need. I just need to write an OO wrapper for it. Although that solution still leaves me with a problem.
PNG files support many color formats, of those I have need for:
(8 bits/channel for all formats) grayscale, rgb, rgba, gray alpha
The problem is I do not know if there is image editing software that supports those formats. I have Adobe Photoshop CS2 at home (wich is far from here...) and I do believe that it supports 32-bit RGBA.
Anyway, I can still make a conversion tool to get to all of the formats that I need, although native support in Photoshop would be awesome. I've searched to see if CS2 support all of those PNG formats, but I have yet to find any confirmation.
Anyway, I've thoroughly read through the libPNG manual and researched the PNG format, and have determined that I should be able to hack it into providing all of the features I need. I just need to write an OO wrapper for it. Although that solution still leaves me with a problem.
PNG files support many color formats, of those I have need for:
(8 bits/channel for all formats) grayscale, rgb, rgba, gray alpha
The problem is I do not know if there is image editing software that supports those formats. I have Adobe Photoshop CS2 at home (wich is far from here...) and I do believe that it supports 32-bit RGBA.
Anyway, I can still make a conversion tool to get to all of the formats that I need, although native support in Photoshop would be awesome. I've searched to see if CS2 support all of those PNG formats, but I have yet to find any confirmation.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement