How do the package ImageMagick binary?

My plugin uses ImageMagick convert and, rather than hassle with the download themselves users, I would like to package it with the plugin. It seems simple for Windows since IM provides versions of convert.exe. OSX is not so clear, as IM suggests that building from source. I'm not going to ask users to use Homebrew if I can avoid it, and I don't want to give my own construction. Some advice from people here on what they have done to the IM package tools?

DB

My file any plugin uses ImageMagick "composite" program, and it is included in the plugin distribution, for the reasons you describe.  It was painful enough for me, not being is not a programmer of Mac, to understand how to build ImageMagick without libraries shared, as well as "composite" was completely autonomous.  Here are my notes on how to do it:

1. Download ImageMagick.tar.gz distribution to /Users/John.  Unpack it by
doing:
    cd /Users/John
    tar xvfz ImageMagick.tar.gz
See http://www.imagemagick.org/script/advanced-unix-installation.php
2. Download the jpegsrc.tar.gz library from:
    http://www.imagemagick.org/download/delegates/
to /Users/John/ImageMagick and unpack it with:
    cd /Users/John/ImageMagick
    tar xvfz jpegsrc.tar.gz
    mv jpegsrc jpeg
3. Configure and build the jpeg library:
    cd jpeg
    ./configure --disable-shared
    make clean; make
4. Download the libpng.tar.gz library from:
    http://www.imagemagick.org/download/delegates/
to /Users/John/ImageMagick and unpack it with:
    cd /Users/John/ImageMagick
    tar xvfz libpng.tar.gz
    mv libpng png
5. Configure and build the png library:
    cd png
    ./configure --disable-shared
    make clean; make
6. Configure and build ImageMagick; copy configure.sh to ImageMagick
folder and do:
    cd /Users/John/ImageMagick
    sh configure.sh
    make clean; make
7. Verify that composite is only loading dynamic libraries from /System and /usr/lib:
    otool -L utilities/composite
7. Copy utilities/composite and config/delegates.xml to anyfile.lrdevplugin.

And here is the content of the above referenced "configure.sh" script:

# Image-magick configure script for configuring with Any File
# --disable-opencl \
./configure \
--disable-installed \
--disable-shared \
--enable-delegate-build \
--prefix=/ImageMagick-6.7.3-7 \
--disable-dependency-tracking \
--with-x=no \
--without-perl \
--with-freetype=no \
--with-jp2=no \
--with-tiff=no \
--with-magick-plus-plus=no \
--with-bzlib=no 

Tags: Photoshop Lightroom

Similar Questions

Maybe you are looking for

  • Satellite A300-15B - 300 SATA-Compatible?

    Hi allI only run Kubuntu (64 bit) for the moment on my machine, but I would add an extra internal hard drive, so to reinstall Vista. My questions are:1. If there is no problem with the extra hard drive, (the beach is empty then why not add a few outs

  • iPhone 6 will not pair to lg Mandine for bluetooth

    My iphone 6 will not pair to lg Mandine for bluetooth. Called LG, but they said to call apple. Any suggestions why Iphone does not see the soundbar

  • Cannot be on line after than Windows XP

    Original title: homegroup I have two computers. Both are emachines is the most recent in windows 7, the other is the oldest a running windows xp.  I have a router attached to the most recent, that it is a netgear wireless. the other computer has an a

  • What type of SSD (2.5 "SATA III or mSATA) is compatible with my Studio XPS 1640?

    Greetings. I'm looking to update / replace the original hard drive in my Studio XPS 1640.  I decided on a SSD Samsung 1 TB 850 Evo, but - without opening to the top of my laptop an extra time - I don't know which format is compatible: the 2.5 "SATA I

  • to convert 1142N AP autonomous lightweight access point

    Hello I have 4 1142N access points are all points of light access. Because I don't have a controller, I need to convert to standalone AP. I went through document cisco 1142, where it is mentioned that "the access point 1142 doesn't have the default I