How to Get ImageMagick Display to Work on Mac OS X

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 0 Flares ×

Let’s say you’re playing with ImageMagick. And you’ve found all sorts of documentation that tells you what you can do with ImageMagick on Linux, but it doesn’t seem to be working on your Mac. If you’re on a Mac, you may not have some of the ImageMagick libraries by default. To fix this, you need to

ImageMagick display command not working on Mac:

>> display pencil.png
display: delegate library support not built-in `' (X11) @ error/display.c/DisplayImageCommand/1904.

Resolution: Re-Install ImageMagick with X11

>>brew uninstall imagemagick
Uninstalling /usr/local/Cellar/imagemagick/6.8.7-7...
>>brew install imagemagick --with-x11
==> Downloading https://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.8.7-7.tar.bz2
######################################################################## 100.0%
==> ./configure --disable-osx-universal-binary --prefix=/usr/local/Cellar/imagemagick/6.8.7-7 --enable-shared --disable-static --without-pango --with-modules --disable-openmp --without-gslib --without-
==> make install
/usr/local/Cellar/imagemagick/6.8.7-7: 1435 files, 22M, built in 108 seconds

Run ImageMagick display

>>display pencil.png

Discover other options with brew info imagemagick:


>>brew info imagemagick
imagemagick: stable 6.8.7-7 (bottled), HEAD

http://www.imagemagick.org

/usr/local/Cellar/imagemagick/6.8.7-7 (1435 files, 22M) *
Built from source with: --with-x11
From: https://github.com/Homebrew/homebrew/commits/master/Library/Formula/imagemagick.rb
==> Dependencies
Build: pkg-config ✔
Required: libtool ✔
Recommended: jpeg ✔, libpng ✔, freetype ✔
Optional: fontconfig ✘, libtiff ✘, little-cms ✘, little-cms2 ✘, jasper ✘, libwmf ✘, librsvg ✘, liblqr ✘, openexr ✘, ghostscript ✘, webp ✘
==> Options
--with-fontconfig
Build with fontconfig support
--with-ghostscript
Build with ghostscript support
--with-jasper
Build with jasper support
--with-liblqr
Build with liblqr support
--with-librsvg
Build with librsvg support
--with-libtiff
Build with libtiff support
--with-libwmf
Build with libwmf support
--with-little-cms
Build with little-cms support
--with-little-cms2
Build with little-cms2 support
--with-openexr
Build with openexr support
--with-perl
enable build/install of PerlMagick
--with-quantum-depth-16
Compile with a quantum depth of 16 bit
--with-quantum-depth-32
Compile with a quantum depth of 32 bit
--with-quantum-depth-8
Compile with a quantum depth of 8 bit
--with-webp
Build with webp support
--with-x11
Build with x11 support
--without-freetype
Build without freetype support
--without-jpeg
Build without jpeg support
--without-libpng
Build without libpng support
--without-magick-plus-plus
disable build/install of Magick++
--HEAD
install HEAD version

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 0 Flares ×

About Paul Mestemaker

Paul Mestemaker is a former full stack engineer and now Product guy based in San Francisco. He helps startups launch their MVPs and gather feedback through usability tests and live site metrics. In his former life, Paul was a co-founder of Mythly Studios and System Center Advisor and Head of Product at Close Inc. He co-authored a book on SQL Server performance tuning. He has been rated as a top speaker at conferences (TechEd, PASS, Connections, et al). He is also a guest lecturer at Colleges and Universities across the U.S. He was the co-host of a weekly tech news show with over 6 million views. Paul's proudest accomplishments is unlocking the "World Champ" achievement on Wordament.

2 Comments


  • Very useful – thanks !

    Reply

    • Haha, coding at 1:04am? Glad I could save you some sanity in the wee hours of the morning.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 0 Flares ×