[magick-users] minimum files for JPEG compression?

Zac Witte zacwitte at gmail.com
Tue Jul 10 02:08:11 PDT 2007


I'm using ImageMagick to make a drag and drop JPEG recompressor for the mac
and I watch to package ImageMagick with my app. I've written a very simple
app using the Magick++ API, but since it uses dynamic libraries, I'm not
sure exactly what files I need to include with my app besides
libMagick++.so.

This is the code for my app:

#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