1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html version="-//W3C//DTD XHTML 1.1//EN"
4 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6 xsi:schemaLocation="http://www.w3.org/1999/xhtml
7 http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd">
9 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
10 <meta name=viewport content="width=device-width, initial-scale=0.3333334">
11 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4"/>
12 <title>ImageMagick: Install from Source</title>
13 <meta http-equiv="content-language" content="en-US"/>
14 <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
15 <meta http-equiv="reply-to" content="magick-users@imagemagick.org"/>
16 <meta name="application-name" content="ImageMagick"/>
17 <meta name="description" content="A collection of tools and libraries to read, write, and manipulate an image in any of the more popular image formats."/>
18 <meta name="application-url" content="http://www.imagemagick.org"/>
19 <meta name="generator" content="PHP"/>
20 <meta name="keywords" content="install, from, source, convert, edit, compose, image, pixel"/>
21 <meta name="rating" content="GENERAL"/>
22 <meta name="robots" content="INDEX, FOLLOW"/>
23 <meta name="generator" content="ImageMagick Studio LLC"/>
24 <meta name="author" content="ImageMagick Studio LLC"/>
25 <meta name="revisit-after" content="2 DAYS"/>
26 <meta name="resource-type" content="document"/>
27 <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC"/>
28 <meta name="distribution" content="Global"/>
29 <link rel="icon" href="../images/wand.png"/>
30 <link rel="shortcut icon" href="../images/wand.ico" type="images/x-icon"/>
31 <link rel="canonical" href="http://www.imagemagick.org" />
32 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf"/>
34 <!-- Add jQuery library -->
35 <script type="text/javascript" src="http://localhost/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
37 <!-- Add mousewheel plugin (this is optional) -->
38 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
41 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
42 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
44 <!-- Optionally add helpers - button, thumbnail and/or media -->
45 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.css?v=1.0.5" type="text/css" media="screen" />
46 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>
47 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>
49 <link rel="stylesheet" href="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" type="text/css" media="screen" />
50 <script type="text/javascript" src="http://www.imagemagick.org/fancybox/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>
52 <script type="text/javascript">
53 $(document).ready(function() {
54 $(".fancybox").fancybox();
58 <!-- ImageMagick style -->
59 <style type="text/css" media="all">
60 @import url("../www/magick.css");
64 <body id="www-imagemagick-org">
66 <script type="text/javascript">
67 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
68 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
69 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
70 })(window,document,'offline-script','//www.google-analytics.com/analytics.js','ga');
72 ga('create', 'UA-40133312-1', 'imagemagick.org');
73 ga('send', 'pageview');
76 <div class="titlebar">
77 <div style="margin: 17px auto; float: left;">
78 <script type="text/javascript">
80 google_ad_client = "pub-3129977114552745";
81 google_ad_slot = "5439289906";
82 google_ad_width = 728;
83 google_ad_height = 90;
86 <script type="text/javascript"
87 src="http://localhost/pagead/show_ads.js">
90 <a href="../discourse-server">
91 <img src="../images/logo.jpg"
92 alt="ImageMagick Logo" width="123" height="118"
93 style="width: 123px; height: 118px; border: 0px; float: right;" /></a>
94 <a href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html">
95 <img src="../images/sprite.jpg"
96 alt="ImageMagick Sprite" width="114" height="118"
97 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
100 <div class="westbar">
103 <a title="About ImageMagick" href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html">About ImageMagick</a>
106 <a title="Binary Releases" href="binary-releases.html">Binary Releases</a>
109 <a title="Binary Release: Unix" href="binary-releases.html#unix">Unix</a>
112 <a title="Binary Release: MacOS X" href="binary-releases.html#macosx">Mac OS X</a>
115 <a title="Binary Release: iOS" href="binary-releases.html#iOS">iOS</a>
118 <a title="Binary Release: Windows" href="binary-releases.html#windows">Windows</a>
120 <div class="sep"></div>
122 <a title="Command-line Tools" href="command-line-tools.html">Command-line Tools</a>
125 <a title="Command-line Tools: Processing" href="command-line-processing.html">Processing</a>
128 <a title="Command-line Tools: Options" href="command-line-options.html">Options</a>
131 <a title="Command-line Tools: Usage" href="http://www.imagemagick.org/Usage/">Usage</a>
134 <a title="Program Interfaces" href="api.html">Program Interfaces</a>
137 <a title="Program Interface: MagickWand" href="magick-wand.html">MagickWand</a>
140 <a title="Program Interface: MagickCore" href="magick-core.html">MagickCore</a>
143 <a title="Program Interface: PerlMagick" href="perl-magick.html">PerlMagick</a>
146 <a title="Program Interface: Magick++" href="magick++.html">Magick++</a>
148 <div class="sep"></div>
150 <a title="Install from Source" href="install-source.html">Install from Source</a>
153 <a title="Install from Source: Unix" href="install-source.html#unix">Unix</a>
156 <a title="Install from Source: Windows" href="install-source.html#windows">Windows</a>
159 <a title="Resources" href="resources.html">Resources</a>
162 <a title="Architecture" href="architecture.html">Architecture</a>
165 <a title="Download" href="download.html">Download</a>
167 <div class="sep"></div>
169 <a title="Search" href="search.html">Search</a>
171 <div class="sep"></div>
173 <a title="Site Map" href="sitemap.html">Site Map</a>
176 <a title="Site Map: Links" href="links.html">Links</a>
178 <div class="sep"></div>
181 <div class="eastbar">
182 <script type="text/javascript">
189 var po = document.createElement('offline-script');
190 po.type = 'text/javascript';
192 po.src = 'https://apis.google.com/js/plusone.js';
193 var script = document.getElementsByTagName('offline-script')[0];
194 script.parentNode.insertBefore(po, script);
196 var gplusone = document.getElementById("gplusone");
197 gplusone.setAttribute("data-size","medium");
198 gplusone.setAttribute("data-count","true");
201 <script type="text/javascript">
204 var po = document.createElement('offline-script'), t = document.getElementsByTagName('offline-script')[0];
205 po.type = 'text/javascript';
207 po.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
208 var script = document.getElementsByTagName('offline-script')[0];
209 script.parentNode.insertBefore(po, script);
213 <div> <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://www.imagemagick.org/"></a></div>
215 <a href="http://flattr.com/thing/947300/Convert-Edit-And-Compose-Images" target="_blank">
216 <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" width="93" height="20" border="0" /></a>
218 <div class="g-plusone" data-size="standard" data-count="true"></div>
224 <h1>Install ImageMagick from Source</h1>
225 <p class="navigation-index">[<a href="install-source.html#unix">Install from Unix Source</a> • <a href="install-source.html#windows">Install from Windows Source</a>]</p>
228 <div class="doc-section">
229 <p>Chances are, ImageMagick is already installed on your computer if you are using some flavor of Unix, but that it is not installed if you are using some form of Windows. In either case, you can type the following to find out.</p>
231 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>identify -version</span></p>
232 <p>If the <a href="identify.html">identify</a> program executes and identifies itself as ImageMagick, you may not need to install ImageMagick from source unless you want to add support for additional image formats or upgrade to a newer version. You also have the option of installing a pre-compiled <a href="binary-releases.html">binary release</a>. However, if you still want to install from source, choose a platform, <a href="install-source.html#unix">Unix</a> or <a href="install-source.html#windows">Windows</a>. Before installing from source, you may want to review recent <a href="changelog.html">changes</a> to the ImageMagick distribution.</p>
235 <h2><a id="unix"></a>Install from Unix Source</h2>
236 <div class="doc-section">
238 <p>ImageMagick builds on a variety of Unix and Unix-like operating systems including Linux, Solaris, FreeBSD, Mac OS X, and others. A compiler is required and fortunately almost all modern Unix systems have one. Download <a href="http://www.imagemagick.org/download/ImageMagick.tar.gz">ImageMagick.tar.gz</a> from <a href="http://www.imagemagick.org/download">www.imagemagick.org</a> or a <a href="download.html">mirrors</a> and verify its <a href="http://www.imagemagick.org/download/digest.rdf">message digest</a>.</p>
240 <p>Unpack the distribution with this command:</p>
242 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>tar xvzf ImageMagick.tar.gz</span></p>
243 <p>Next configure and compile ImageMagick:</p>
245 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>cd ImageMagick-6.8.9</span><span class='crtout'></span><span class="crtprompt"> $magick> </span><span class='crtin'>./configure</span><span class='crtout'></span><span class="crtprompt"> $magick> </span><span class='crtin'>make</span></p>
246 <p>If ImageMagick configured and compiled without complaint, you are ready to install it on your system. Administrator privileges are required to install. To install, type</p>
248 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>sudo make install</span></p>
249 <p>You may need to configure the dynamic linker run-time bindings:</p>
251 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>sudo ldconfig /usr/local/lib</span></p>
252 <p>Finally, verify the ImageMagick install worked properly, type</p>
254 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>/usr/local/bin/convert logo: logo.gif</span></p>
255 <p>For a more comprehensive test, run the ImageMagick validation suite. Ghostscript is a prerequisite, otherwise the EPS, PS, and PDF tests will fail.</p>
257 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>make check</span></p>
258 <p>Congratulations, you have a working ImageMagick distribution and you are ready to use ImageMagick to <a href="http://www.imagemagick.org/Usage/">convert, compose, or edit</a> your images or perhaps you'll want to use one of the <a href="api.html">Application Program Interfaces</a> for C, C++, Perl, and others.</p>
260 <p>The above instructions will satisfy a great number of ImageMagick users, but we suspect a few will have additional questions or problems to consider. For example, what does one do if ImageMagick fails to configure or compile? Or what if you don't have administrator privileges and what if you don't want to install ImageMagick in the default <code>/../usr/local</code> folder? You will find the answer to these questions, and more, in <a href="advanced-unix-installation.html">Advanced Unix Source Installation</a>.</p>
264 <h2><a id="windows"></a>Install from Windows Source</h2>
265 <div class="doc-section">
267 <p>Building ImageMagick source for Windows requires a modern version of Microsoft Visual Studio IDE. Users have reported success with the Borland C++ compiler as well. If you don't have a compiler you can still install a self-installing <a href="binary-releases.html">binary release</a>.</p>
269 <p>Download <a href="http://www.imagemagick.org/download/windows/ImageMagick-windows.zip">ImageMagick-windows.zip</a> from <a href="http://www.imagemagick.org/download/windows">www.imagemagick.org</a> or a <a href="download.html">mirrors</a> and verify its <a href="http://www.imagemagick.org/download/windows/digest.rdf">message digest</a>.</p>
271 <p>You can unpack the distribution with <a href="http://www.winzip.com">WinZip</a> or type the following from any MS-DOS Command Prompt window:</p>
273 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>unzip ImageMagick-windows.zip</span></p>
274 <p>Next, launch your Visual Studio IDE and choose <kbd>Open->Project</kbd>. Select the configure workspace from the <kbd>ImageMagick-6.8.9/VisualMagick/configure</kbd> folder and press Open. Choose <kbd>Build->Build Solution</kbd>
275 to compile the program and on completion run the program.</p>
277 <p class="image"><img src="../images/configure.jpg" alt="[configure]" /></p>
279 <p>Press <kbd>Next</kbd> and click on the multi-threaded static build. If you are using the Visual Studio 6.0 IDE, make sure no check is next to the <em>Generate Visual Studio 7</em> format option. Now press, on <kbd>Next</kbd> twice and finally <kbd>Finish</kbd>. The configuration utility just created a workspace required to build ImageMagick from source. Choose <kbd>Open->Project</kbd> and select the VisualStaticMT workspace from the <kbd>ImageMagick-6.8.9/VisualMagick/</kbd> folder. Finally, choose <kbd>Build->Build Solution</kbd> to compile and build the ImageMagick distribution.</p>
281 <p>To verify ImageMagick is working properly, launch a MS-DOS Command Prompt window and type</p>
283 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>cd ImageMagick-6.8.9</span><span class='crtout'></span><span class="crtprompt"> $magick> </span><span class='crtin'>convert logo: image.jpg</span></p>
284 <p>For a more comprehensive test, run the ImageMagick validation suite:</p>
286 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>validate</span></p>
287 <p>Congratulations, you have a working ImageMagick distribution under Windows and you are ready to use ImageMagick to <a href="http://www.imagemagick.org/Usage/">convert, compose, or edit</a> your images or perhaps you'll want to use one of the <a href="api.html">Application Program Interfaces</a> for C, C++, Perl, and others.</p>
289 <p>The above instructions will satisfy a great number of ImageMagick users, but we suspect a few will have additional questions or problems to consider. For example, what does one do if ImageMagick fails to configure or compile? Or what if you want to install ImageMagick in a place other than the <kbd>ImageMagick-6.8.9/VisualMagick/bin</kbd> folder? Or perhaps you want to build and install the <a href="ImageMagickObject.html">ImageMagickObject</a> COM+ component. You will find the answer to these questions, and more, in <a href="advanced-windows-installation.html">Advanced Windows Source Installation</a>.</p>
296 <span id="linkbar-west"> </span>
298 <span id="linkbar-center">
299 <a href="../discourse-server">Discourse Server</a> •
300 <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> •
301 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a> •
302 <a href="http://jqmagick.imagemagick.org/">JqMagick</a>
304 <span id="linkbar-east"> </span>
307 <span id="footer-west">© 1999-2015 ImageMagick Studio LLC</span>
308 <span id="footer-east"> <a href="contact.html">Contact the Wizards</a></span>
310 <div style="clear: both; margin: 0; width: 100%; "></div>