<metaname="description"content="Use ImageMagick® to create, edit, compose, and convert bitmap images. Resize an image, crop it, change its shades and colors, add captions, and more."/>
<h1class="text-center">Install ImageMagick from Source</h1>
<pclass="text-center"><ahref="install-source.html#unix">Install from Unix Source</a> • <ahref="install-source.html#windows">Install from Windows Source</a></p>
<pclass="lead magick-description">Chances are, ImageMagick is already installed on your computer if you are using some flavor of Unix, and its likely not installed if you are using some form of Windows. In either case, you can type the following to find out:</p>
<preclass="highlight"><code>identify -version
</code></pre>
<p>If the <ahref="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 <ahref="download.html">binary release</a>. However, if you still want to install from source, choose a platform, <ahref="install-source.html#unix">Unix</a> or <ahref="install-source.html#windows">Windows</a>. Before installing from source, you may want to review recent <ahref="changelog.html">changes</a> to the ImageMagick distribution.</p>
<p>The authoritative source code repository is <ahref="https://github.com/ImageMagick/ImageMagick6">https://github.com/ImageMagick/ImageMagick6</a>.</p>
<h2><aclass="anchor"id="unix"></a>Install from Unix Source</h2>
<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. Clone the source repository:</p>
<p>Or download <ahref="../download">ImageMagick.tar.gz</a> from <ahref="../download">imagemagick.org</a> or a <ahref="mirror.html">mirror</a> and verify the distribution against its <ahref="https://legacy.imagemagick.org/download/digest.rdf">message digest</a>.</p>
<p>Next configure and compile ImageMagick. Note the <ahref="https://en.wikipedia.org/wiki/Pkg-config">pkg-config</a> script is required so that ImageMagick can find certain optional delegate libraries on your system. To configure, type:</p>
<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>
<preclass="highlight"><code>sudo make install
</code></pre>
<p>You may need to configure the dynamic linker run-time bindings:</p>
<p>For a more comprehensive test, run the ImageMagick validation suite. Ghostscript and Freetype are prerequisites, otherwise expect the EPS, PS, PDF and text annotations tests to fail.</p>
<preclass="highlight"><code>make check
</code></pre>
<p>Congratulations, you have a working ImageMagick distribution and you are ready to use ImageMagick to <ahref="https://legacy.imagemagick.org/Usage/">convert, compose, or edit</a> your images or perhaps you'll want to use one of the <ahref="develop.html">Application Program Interfaces</a> for C, C++, Perl, and others.</p>
<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 <ahref="advanced-unix-installation.html">Advanced Unix Source Installation</a>.</p>
<h2><aclass="anchor"id="windows"></a>Install from Windows Source</h2>
<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 <ahref="download.html">binary release</a>.</p>
<p>and run <code>CloneRepositories.cmd</code>. Alternatively, download <ahref="https://download.imagemagick.org/ImageMagick/download/windows/">ImageMagick-windows.zip</a> and verify its <ahref="https://download.imagemagick.org/ImageMagick/download/windows/digest.rdf">message digest</a>. For the latter, you can unpack the distribution with <ahref="http://www.winzip.com">WinZip</a> or type the following from any MS-DOS Command Prompt window:</p>
<p>Next, launch your Visual Studio IDE and choose <kbd>Open->Project</kbd>. Select the configure workspace from the <kbd>ImageMagick-6.9.11/VisualMagick/configure</kbd> folder and press Open. Choose <kbd>Build->Build Solution</kbd>
to compile the program and on completion run the program.</p>
<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 <var>Generate Visual Studio 7</var> 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.9.11/VisualMagick/</kbd> folder. Finally, choose <kbd>Build->Build Solution</kbd> to compile and build the ImageMagick distribution.</p>
<p>To verify ImageMagick is working properly, launch a MS-DOS Command Prompt window and type</p>
<p>For a more comprehensive test, run the ImageMagick validation suite:</p>
<preclass="highlight"><code>validate
</code></pre>
<p>Congratulations, you have a working ImageMagick distribution under Windows and you are ready to use ImageMagick to <ahref="https://legacy.imagemagick.org/Usage/">convert, compose, or edit</a> your images or perhaps you'll want to use one of the <ahref="develop.html">Application Program Interfaces</a> for C, C++, Perl, and others.</p>
<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.9.11/VisualMagick/bin</kbd> folder? Or perhaps you want to build and install the <ahref="ImageMagickObject.html">ImageMagickObject</a> COM+ component. You will find the answer to these questions, and more, in <ahref="advanced-windows-installation.html">Advanced Windows Source Installation</a>.</p>
</div>
</div>
</main><!-- /.container -->
<footerclass="magick-footer">
<divclass="container">
<p><ahref="security-policy.html">Security</a> •
<ahref="news.html">News</a>
<ahref="install-source.html#"><imgclass="d-inline"id="wand"alt="And Now a Touch of Magick"width="16"height="16"src="../images/wand.ico"/></a>