How to use imagemagick to load pictures as textures?

Hi all,
Many people say dont use AUX, so I want to use imagemagick( to load images. But it really hard for a beginner. Could anybody can write a simple code to load a jpg file and convert its format to which opgnGL can import?
Thanks a lot!