Saturday, December 26, 2009

ImageMagick

  • Windows7 / VisualStudio 2008 , To build it, get:
  • ftp://ftp.imagemagick.org/pub/ImageMagick/windows/ImageMagick-windows.zip unzip
    When you open, build, and run: VisualMagick/configure/configure.sln
    you get: VisualMagick/VisualStaticMT.sln
    Now you can build ImageMagick.
    To build a release of an exe using ImageMagick, I ran into VisualStudio libraries conflicts using STATIC_MAGICK. I built the "dynamic" ImageMagick using configure, and then I could have it to work fairly easily.
  • To convert pictures using the command line:
    C:\tools\ImageMagick-6.5.8\VisualMagick\bin>convert "C:\Users\x\Downloads\2010-05-16 16.05.43.jpg" -resize 10% toto.jpg
  • Ubuntu
  • $tar xvfz ImageMagick.tar.gz
    $ cd ImageMagick-6.6.3-1
    $ ./configure
    $ make
    $ sudo make install
    ImageMagick-6.7.8-8/utilities/convert DSC_6093.JPG   -resize 40%   out2.jpg

No comments: