[magick-users] ErrorMissingDelegate

Zac Witte zacwitte at gmail.com
Sat Apr 5 20:05:57 PDT 2008


I recompiled a really simple ImageMagick app to recompress JPEGs with a
newer version of Magick++ and I've started getting this error:

ZAC-MAC:Resources zacwitte$ ./JPGCrusher ~/Desktop/chris/IMG_3001.jpg
terminate called after throwing an instance of
'Magick::ErrorMissingDelegate'
  what():  ImageMagick: no decode delegate for this image format
`/Users/zacwitte/Desktop/chris/IMG_3001.jpg'
Abort trap

I'm using this on mac os x. I first installed the binary version of IM and
then compiled from source and installed with 'make install'.

Here's the simple code:
#include <iostream>
#include "Magick++.h"

using namespace std;
using namespace Magick;

int main(int argc, char** argv) {
    if (argc < 2) {
        cout << "Usage: JPGCrusher <imagename.jpg>" << endl;
        return 1;
    }


    Image image;

    image.read(argv[1]);
    image.compressType(JPEGCompression);
    image.quality(75);
    image.write(argv[1]);


    return 0;
}


More information about the Magick-users mailing list