magick++ wont open or close files. wont throw error

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Posts: 1
Joined: 2014-02-02T00:12:46-07:00
Authentication code: 6789

magick++ wont open or close files. wont throw error

Post by sirus20x6 » 2014-02-02T00:15:35-07:00

Was using the command line version of image magic but it wasnt fast enough for the mass processing I needs. so i tried to run multiple copies with thread and async but my try at it must not have been thread safe because sometimes it would work and sometimes it would run with the last iteration of the counter i was feeding in for all iterations.

So I decided to move to the magick++ library to try and speed things up. I configured and compiled from source. it took all night and I haven't slept yet, but it doesnt seem to work. my program compiles fine with no errors, runs, produces no output.

Code: Select all

#include <iostream>
#include <iomanip>
#include <Magick++.h>
using namespace Magick;
using namespace std;

int main(int argc, char **argv)
    Image image;
    try {"test.jpg");
        //image.crop(Geometry(100, 100, 100, 100));
    catch (Exception &error_)
        cout << "Caught exception: " << error_.what() << endl;
        return 1;

    return 0;
tried with gif, jpg, and png's. nothing happens when i run my app it just exits quietly.

Post Reply