I need to load an image but i’m not sure which format is best to use, I have both JPG + GIF images. Once these image are loaded I need to do some 3d image manipulations through cg. which format would be best to use?
It doesn’t matter which format you are using because the images will be uncompressed in texture memory. However, given the quality of the compression, GIF images may have fewer artifacts that JPG ones. Note also that it is pointless to convert JPG to GIF and load them as GIF because the quality was lost when the image was first compressed as a JPG
you might be better off using PNG, actually… it’s lossless like GIF, but can compress 24- and 32-bit images, has no patent/licensing issues, etc.
see http://www.libpng.org/pub/png/ for details.
and PNGs are free, where as GIFs are not.
if you don’t know what I an talking about visit