Loading bitmap formats

Hi, I am curious if there is an easy way of loading bitmaps from multiple formats into a GLubyte array. So far I was only succesfull of loading .bmp files through AUX_RGBImageRec’s auxDIBImageLoad() function. Then I simply re-assign the ->data component (containing the pointer to GLubyte structure) to my custom pointer. Are there any classes/libraries that I can use to load jpeg’s, gifs and other formats as well?

I am sorry if this question is structured wrong, I am a beginner.

Thanks in advance.