CImg failed to recognize the format “jpeg”
问题 To load image, I installed the CImg library in my mac(OSX 10.10). Luckily I managed to display the bmp picture, but I failed to load and display other formats like png or jpg. Then I installed the ImageMagic which is downloaded from http://cactuslab.com/imagemagick/ and then run the program. The errors are still there. My code is : #include "CImg.h" #include <stdlib.h> #define cimg_use_magick using namespace cimg_library; int main() { CImg<unsigned char> image("lena.jpg"); image.display();