GraphicsMagick binary (Ghostscript included) as a local dependency for OS X and windows(x64)
var gmBin = require('gm-binary');
console.log(gmBin.gmPath); // /path/to/node_modules/gm-binary/bin/mac/gm
The module automatically add the /bin folder to the PATH variable
The provided GraphicsMagick binary is built using the following configure parameters:
--disable-dependency-tracking --disable-shared --disable-installed --enable-broken-coders --with-modules --with-quantum-depth=16 --without-gslib --without-x --without-lcms2 CC=clang CXX=clang++
Install Homebrew
Install mac dylib bundler
Adjust build parameters in graphicsmagick-custom.rb
Run the build script:
./build-gm
Adrien Glitchbone
gm-binary is available under the MIT license. See the LICENSE file for more information.
GraphicsMagick is Copyright © GraphicsMagick Group
Ghostscript is Copyright © Artifex Software, Inc.