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;
}
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to