Commit 6558b3f82 for imagemagick.org
commit 6558b3f82112f8657ee56aaef69ccb2436c521ba
Author: Cristy <urban-warrior@imagemagick.org>
Date: Fri Dec 4 13:22:41 2026 -0500
modernize installation instructions
diff --git a/Install-mac.txt b/Install-mac.txt
deleted file mode 100644
index 5bab04c3b..000000000
--- a/Install-mac.txt
+++ /dev/null
@@ -1,98 +0,0 @@
-macOS-specific Build instructions
-
-In order to install ImageMagick on macOS, you will first need Apple's "Xcode",
-which you can get by going to the AppStore and searching for "Xcode" and
-installing it.
-
-Next, you will need to install the "Xcode Command Line Tools" which includes
-the compiler. You can install those by running the following command in the
-Terminal:
-
- xcode-select --install
-
-Now that you have the necessary tools, you have a choice of how to install
-ImageMagick. The simplest method is to use "homebrew", and that method is shown
-first below. The alternative method is to install from source, which is shown
-afterwards.
-
-################################################################################
-Method 1: Using "homebrew"
-################################################################################
-
-Go to http://brew.sh and copy the one-liner that installs "homebrew".
-
-Paste that into the Terminal and run it.
-
-For the very simplest, fastest, most basic ImageMagick installation, run:
-
- brew install imagemagick
-
-Test your installation by running:
-
- identify -version
-
-If you want to add support for extra features, such as HDRI, Perl, JPEG2000,
-pango,fftw, TIFF or rsvg etc. you can configure the necessary switches by running:
-
- brew edit imagemagick
-
-then find the options you need and apply them like this:
-
- brew reinstall -s imagemagick
-
-If you have any problems with "homebrew", simply run:
-
- brew doctor
-
-and follow the doctor's advice.
-
-
-################################################################################
-Method 2: Compile from source - not necessary if you used "homebrew" method
-################################################################################
-
-
-Perform these steps as an administrator or with the sudo command:
-
-Install MacPorts. Download and install http://www.macports.org/ and type the
-following commands:
-
- $magick> sudo port -v install freetype +bytecode
- $magick> sudo port -v install librsvg
- $magick> sudo port -v install graphviz +gs +wmf +jbig +jpeg2 +lcms
-
-This installs many of the delegate libraries ImageMagick will utilize such as
-JPEG and FreeType.
-
-Use the port command to install any delegate libraries you require, for example:
-
- $magick> sudo port install jpeg
-
-Now let's build ImageMagick:
-
-Download the ImageMagick source distribution and verify the distribution
-against its message digest.
-
-Unpack and change into the top-level ImageMagick directory:
-
- $magick> tar xvfz ImageMagick-7.0.7-0.tar.gz
- $magick> cd ImageMagick-7.0.7
-
-Configure ImageMagick:
-
- $magick> ./configure --prefix=/opt --with-quantum-depth=16 \
- --disable-dependency-tracking --without-perl
-
-Build ImageMagick:
-
- $magick> make
-
-Install ImageMagick:
-
- $magick> sudo make install
-
-To verify your install, type
-
- $magick> /opt/local/bin/identify -list font
-
-to list all the fonts ImageMagick knows about.
diff --git a/Install-unix.txt b/Install-unix.txt
deleted file mode 100644
index e33f4e763..000000000
--- a/Install-unix.txt
+++ /dev/null
@@ -1,588 +0,0 @@
-Download & Unpack
-
- ImageMagick builds on a variety of Unix and Unix-like operating systems
- including Linux, Ubuntu, FreeBSD, Windows, macOS, and others. A compiler
- is required and fortunately almost all modern Unix systems have one. Download
- https://imagemagick.org/archive/ImageMagick.tar.gz.
-
- Unpack the distribution with this command:
-
- $ tar xvfz ImageMagick.tar.gz
-
- Now that you have the ImageMagick Unix/Linux source distribution unpacked,
- let's configure it.
-
-Configure
-
- The configure script looks at your environment and decides what it can cobble
- together to get ImageMagick compiled and installed on your system. This
- includes finding a compiler, where your compiler header files are located
- (e.g. stdlib.h), and if any delegate libraries are available for ImageMagick
- to use (e.g. JPEG, PNG, TIFF, etc.). If you are willing to accept configure's
- default options, and build from within the source directory, you can simply
- type:
-
- $ cd ImageMagick-7.1.1
- $ ./configure
-
- Watch the configure script output to verify that it finds everything that
- you think it should. Pay particular attention to the last lines of the script
- output.
-
- You can influence the choice of compiler, compilation flags, or libraries of
- the configure script by setting initial values for variables in the configure
- command line. These include, among others:
-
- CC
- Name of C compiler (e.g. cc -Xa) to use.
-
- CXX
- Name of C++ compiler to use (e.g. CC).
-
- CFLAGS
- Compiler flags (e.g. -g -O2) to compile C code.
-
- CXXFLAGS
- Compiler flags (e.g. -g -O2) to compile C++ code.
-
- CPPFLAGS
- Include paths (e.g. -I/usr/local) to look for header files.
-
- LDFLAGS
- Library paths (.e.g. -L/usr/local) to look for libraries systems that
- support the notion of a library run-path may require an additional
- argument in order to find shared libraries at run time. For example,
- the Solaris linker requires an argument of the form -R/path. Some
- Linux systems will work with -rpath /usr/local/lib, while some other
- Linux systems whose gcc does not pass -rpath to the linker require
- an argument of the form -Wl,-rpath,/usr/local/lib.
-
- LIBS
- Extra libraries (e.g. -l/usr/local/lib) required to link.
-
- Here is an example of setting configure variables from the command line:
-
- $ ./configure CC=c99 CFLAGS=-O2 LIBS=-lposix
-
- Any variable (e.g. CPPFLAGS or LDFLAGS) which requires a directory path must
- specify an absolute path rather than a relative path.
-
- Configure can usually find the X include and library files automagically,
- but if it doesn't, you can use the --x-includes=path and --x-libraries=path
- options to specify their locations.
-
- The configure script provides a number of ImageMagick specific
- options. When disabling an option --disable-something is equivalent to
- specifying --enable-something=no and --without-something is equivalent to
- --with-something=no. The configure options are as follows (execute configure
- --help to see all options).
-
- ImageMagick options represent either features to be enabled, disabled,
- or packages to be included in the build. When a feature is enabled (via
- --enable-something), it enables code already present in ImageMagick. When a
- package is enabled (via --with-something), the configure script will search
- for it, and if it is properly installed and ready to use (headers and built
- libraries are found by compiler) it will be included in the build. The
- configure script is delivered with all features disabled and all packages
- enabled. In general, the only reason to disable a package is if a package
- exists but it is unsuitable for the build (perhaps an old version or not
- compiled with the right compilation flags).
-
- Here are the optional features you can configure:
-
- --enable-shared
- build the shared libraries and support for loading coder and process
- modules. Shared libraries are preferred because they allow programs
- to share common code, making the individual programs much smaller. In
- addition, shared libraries are required in order for PerlMagick to be
- dynamically loaded by an installed PERL; otherwise an additional PERL
- (PerlMagick) must be installed.
-
- ImageMagick built with delegates (see MAGICK PLUG-INS below) can pose
- additional challenges. If ImageMagick is built using static libraries (the
- default without --enable-shared) then delegate libraries may be built as
- either static libraries or shared libraries. However, if ImageMagick is
- built using shared libraries, then all delegate libraries must also be
- built as shared libraries. Static libraries usually have the extension
- .a, while shared libraries typically have extensions like .so, .sa, or
- .dll. Code in shared libraries normally must be compiled using a special
- compiler option to produce Position Independent Code (PIC). The only
- time this is not necessary is if the platform compiles code as PIC by
- default.
-
- PIC compilation flags differ from vendor to vendor (gcc's is
- -fPIC). However, you must compile all shared library source with the
- same flag (for gcc use -fPIC rather than -fpic). While static libraries
- are normally created using an archive tool like ar, shared libraries
- are built using special linker or compiler options (e.g. -shared for gcc).
-
- If --enable-shared is not specified, a new PERL interpreter (PerlMagick)
- is built which is statically linked against the PerlMagick extension. This
- new interpreter is installed into the same directory as the ImageMagick
- utilities. If --enable-shared is specified, the PerlMagick extension is
- built as a dynamically loadable object which is loaded into your current
- PERL interpreter at run-time. Use of dynamically-loaded extensions is
- preferable over statically linked extensions so use --enable-shared if
- possible (note that all libraries used with ImageMagick must be shared
- libraries!).
-
- --disable-static
- static archive libraries (with extension .a) are not built. If you
- are building shared libraries, there is little value to building static
- libraries. Reasons to build static libraries include: 1) they can be
- easier to debug; 2) clients do not have external dependencies (i.e.
- libMagick.so); 3) building PIC versions of the delegate libraries may
- take additional expertise and effort; 4) you are unable to build shared
- libraries.
-
- --disable-installed
- disable building an installed ImageMagick (default enabled).
-
- By default the ImageMagick build is configured to formally install
- into a directory tree. This is the most secure and reliable way to install
- ImageMagick. Use this option to configure ImageMagick so that it doesn't
- use hard-coded paths and locates support files by computing an offset path
- from the executable (or from the location specified by the MAGICK_HOME
- environment variable). The uninstalled configuration is ideal for binary
- distributions which are expected to extract and run in any location.
-
- --enable-ccmalloc
- enable 'ccmalloc' memory debug support (default disabled).
-
- --enable-prof
- enable 'prof' profiling support (default disabled).
-
- --enable-gprof
- enable 'gprof' profiling support (default disabled).
-
- --enable-gcov
- enable 'gcov' profiling support (default disabled).
-
- --disable-openmp
- disable OpenMP (default enabled).
-
- Certain ImageMagick algorithms, for example convolution, can achieve
- a significant speed-up with the assistance of the OpenMP API when
- running on modern dual and quad-core processors.
-
- --disable-largefile
- disable support for large (64 bit) file offsets.
-
- By default, ImageMagick is compiled with support for large files (>
- 2GB on a 32-bit CPU) if the operating system supports large files. Some
- applications which use the ImageMagick library may also require support
- for large files. By disabling support for large files via
- --disable-largefile, dependent applications do not require special
- compilation options for large files in order to use the library.
-
- Here are the optional packages you can configure:
-
- --with-quantum-depth
- number of bits in a pixel quantum (default 16).
-
- Use this option to specify the number of bits to use per pixel quantum
- (the size of the red, green, blue, and alpha pixel components). For
- example, --with-quantum-depth=8 builds ImageMagick using 8-bit quantums.
- Most computer display adapters use 8-bit quantums. Currently supported
- arguments are 8, 16, or 32. We recommend the default of 16 because
- some image formats support 16 bits-per-pixel. However, this option is
- important in determining the overall run-time performance of ImageMagick.
-
- The number of bits in a quantum determines how many values it may
- contain. Each quantum level supports 256 times as many values as the
- previous level. The following table shows the range available for various
- quantum sizes.
-
- Quantum Depth Valid Range (Decimal) Valid Range (Hex)
- 8 0-255 00-FF
- 16 0-65535 0000-FFFF
- 32 0-4294967295 00000000-FFFFFFFF
-
- Larger pixel quantums can cause ImageMagick to run more slowly and to
- require more memory. For example, using sixteen-bit pixel quantums can
- cause ImageMagick to run 15% to 50% slower (and take twice as much memory)
- than when it is built to support eight-bit pixel quantums.
-
- The amount of virtual memory consumed by an image can be computed by
- the equation (5 * Quantum Depth * Rows * Columns) / 8. This an important
- consideration when resources are limited, particularly since processing
- an image may require several images to be in memory at one time. The
- following table shows memory consumption values for a 1024x768 image:
-
- Quantum Depth Virtual Memory
- 8 3MB
- 16 8MB
- 32 15MB
-
- --enable-hdri
- accurately represent the wide range of intensity levels (experimental).
-
- --enable-osx-universal-binary
- build a universal binary on OS X.
-
- --without-modules
- disable support for dynamically loadable modules.
-
- Image coders and process modules are built as loadable modules which are
- installed under the directory [prefix]/lib/ImageMagick-X.X.X/modules-QN
- (where 'N' equals 8, 16, or 32 depending on the quantum depth) in the
- subdirectories coders and filters respectively. The modules build option
- is only available in conjunction with --enable-shared. If --enable-shared
- is not also specified, support for building modules is disabled. Note that
- if --enable-shared and --disable-modules are specified, the module loader
- is active (allowing extending an installed ImageMagick by simply copying
- a module into place) but ImageMagick itself is not built using modules.
-
- --with-cache
- set pixel cache threshold (defaults to available memory).
-
- Specify a different image pixel cache threshold with this option. This
- sets the maximum amount of heap memory that ImageMagick is allowed to
- consume before switching to using memory-mapped temporary files to store
- raw pixel data.
-
- --without-threads
- disable threads support.
-
- By default, the ImageMagick library is compiled with multi-thread
- support. If this is undesirable, specify --without-threads.
-
- --with-frozenpaths
- enable frozen delegate paths.
-
- Normally, external program names are substituted into the delegates.xml
- configuration file without full paths. Specify this option to enable
- saving full paths to programs using locations determined by configure.
- This is useful for environments where programs are stored under multiple
- paths, and users may use different PATH settings than the person who
- builds ImageMagick.
-
- --without-magick-plus-plus
- disable build/install of Magick++.
-
- Disable building Magick++, the C++ application programming interface
- to ImageMagick. A suitable C++ compiler is required in order to build
- Magick++. Specify the CXX configure variable to select the C++ compiler
- to use (default g++), and CXXFLAGS to select the desired compiler
- optimization and debug flags (default -g -O2). Antique C++ compilers
- will normally be rejected by configure tests so specifying this option
- should only be necessary if Magick++ fails to compile.
-
- --with-package-release-name
- encode this name into the shared library name (see libtools -release
- option).
-
- --without-perl
- disable build/install of PerlMagick, or
-
- By default, PerlMagick is conveniently compiled and installed as part
- of ImageMagick's normal configure, make, sudo make install process. When
- --without-perl is specified, you must first install ImageMagick, change to
- the PerlMagick subdirectory, build, and finally install PerlMagick. Note,
- PerlMagick is configured even if --without-perl is specified. If the
- argument --with-perl=/path/to/perl is supplied, /../path/to/perl is
- taken as the PERL interpreter to use. This is important in case the perl
- executable in your PATH is not PERL5, or is not the PERL you want to use.
-
- --with-perl=PERL
- use specified Perl binary to configure PerlMagick.
-
- --with-perl-options=OPTIONS
- options to pass on command-line when generating PerlMagick's Makefile
- from Makefile.PL.
-
- The PerlMagick module is normally installed using the Perl interpreter's
- installation PREFIX, rather than ImageMagick's. If ImageMagick's
- installation prefix is not the same as PERL's PREFIX, then you
- may find that PerlMagick's sudo make install step tries to install
- into a directory tree that you don't have write permissions to. This
- is common when PERL is delivered with the operating system or on Internet
- Service Provider (ISP) web servers. If you want PerlMagick to install
- elsewhere, then provide a PREFIX option to PERL's configuration step
- via "--with-perl-options=PREFIX=/some/place". Other options accepted by
- MakeMaker are 'LIB', 'LIBPERL_A', 'LINKTYPE', and 'OPTIMIZE'. See the
- ExtUtils::MakeMaker(3) manual page for more information on configuring
- PERL extensions.
-
- --without-bzlib
- disable BZLIB support.
-
- --without-dps
- disable Display Postscript support.
-
- --with-fpx
- enable FlashPIX support.
-
- --without-freetype
- disable TrueType support.
-
- --with-gslib
- enable Ghostscript library support.
-
- --without-jbig
- disable JBIG support.
-
- --without-jpeg
- disable JPEG support.
-
- --without-jp2
- disable JPEG v2 support.
-
- --without-lcms
- disable lcms (v1.1X) support
-
- --without-lcms2
- disable lcms (v2.X) support
-
- --without-lzma
- disable LZMA support.
-
- --without-png
- disable PNG support.
-
- --without-tiff
- disable TIFF support.
-
- --without-wmf
- disable WMF support.
-
- --with-fontpath
- prepend to default font search path.
-
- --with-gs-font-dir
- directory containing Ghostscript fonts.
-
- Specify the directory containing the Ghostscript Postscript Type 1 font
- files (e.g. n022003l.pfb) so that they can be rendered using the FreeType
- library. If the font files are installed using the default Ghostscript
- installation paths (${prefix}/share/ghostscript/fonts), they should
- be discovered automagically by configure and specifying this option is
- not necessary. Specify this option if the Ghostscript fonts fail to be
- located automagically, or the location needs to be overridden.
-
- --with-windows-font-dir
- directory containing MS-Windows fonts.
-
- Specify the directory containing MS-Windows-compatible fonts. This is not
- necessary when ImageMagick is running under MS-Windows.
-
- --without-xml
- disable XML support.
-
- --without-zlib
- disable ZLIB support.
-
- --without-x
- don't use the X Window System.
-
- By default, ImageMagick uses the X11 delegate libraries if they are
- available. When --without-x is specified, use of X11 is disabled. The
- display, animate, and import sub-commands are not included. The remaining
- sub-commands have reduced functionality such as no access to X11 fonts
- (consider using Postscript or TrueType fonts instead).
-
- --with-share-path=DIR
- Alternate path to share directory (default share/ImageMagick).
-
- --with-libstdc=DIR
- use libstdc++ in DIR (for GNU C++).
-
- While configure is designed to ease installation of ImageMagick, it often
- discovers problems that would otherwise be encountered later when compiling
- ImageMagick. The configure script tests for headers and libraries by
- executing the compiler (CC) with the specified compilation flags (CFLAGS),
- pre-processor flags (CPPFLAGS), and linker flags (LDFLAGS). Any errors are
- logged to the file config.log. If configure fails to discover a header or
- library please review this log file to determine why, however, please be
- aware that *errors in the config.log are normal* because configure works by
- trying something and seeing if it fails. An error in config.log is only a
- problem if the test should have passed on your system.
-
- Common causes of configure failures are: 1) a delegate header is not in the
- header include path (CPPFLAGS -I option); 2) a delegate library is not in
- the linker search/run path (LDFLAGS -L/-R option); 3) a delegate library is
- missing a function (old version?); or 4) compilation environment is faulty.
-
- If all reasonable corrective actions have been tried and the problem appears
- to be due to a flaw in the configure script, please send a bug report to the
- ImageMagick Defect Support Forum. All bug reports should contain the operating
- system type (as reported by uname -a) and the compiler/compiler-version. A
- copy of the configure script output and/or the relevant portion of config.log
- file may be valuable in order to find the problem. If you post portions
- of config.log, please also send a script of the configure output and a
- description of what you expected to see (and why) so the failure you are
- observing can be identified and resolved.
-
- ImageMagick is now configured and ready to build
-
-Build
-
- Once ImageMagick is configured, these standard build targets are available
- from the generated make files:
-
- make
- build ImageMagick.
-
- sudo make install
- install ImageMagick.
-
- make check
- Run tests using the installed ImageMagick (sudo make install must be
- done first). Ghostscript is a prerequisite, otherwise the EPS, PS,
- and PDF tests will fail.
-
- make clean
- Remove everything in the build directory created by make.
-
- make distclean
- remove everything in the build directory created by configure and
- make. This is useful if you want to start over from scratch.
-
- make uninstall
- Remove all files from the system which are (or would be) installed by sudo
- make install using the current configuration. Note that this target is
- imperfect for PerlMagick since Perl no longer supports an uninstall
- target.
-
- In most cases you will simply want to compile ImageMagick with this command:
-
- $ make
-
- Once built, you can optionally install ImageMagick on your system as
- discussed below.
-
-Install
-
- Now that ImageMagick is configured and built, type:
-
- $ make install
-
- to install it.
-
- By default, ImageMagick installs binaries in /../usr/local/bin, libraries
- in /../usr/local/lib, header files in /../usr/local/include and documentation
- in /../usr/local/share. You can specify an alternative installation prefix
- other than /../usr/local by giving configure the option --prefix=PATH. This is
- valuable in case you don't have privileges to install under the default
- paths or if you want to install in the system directories instead.
-
- To confirm your installation of the ImageMagick distribution was successful,
- ensure that the installation directory is in your executable search path
- and type:
-
- $ display
-
- The ImageMagick logo is displayed on your X11 display.
-
- To verify the ImageMagick build configuration, type:
-
- $ identify -list configure
-
- To list which image formats are supported, type:
-
- $ identify -list format
-
- For a more comprehensive test, you can run the ImageMagick test suite by typing:
-
- $ make check
-
- Ghostscript is a prerequisite, otherwise the EPS, PS, and PDF tests will
- fail. Note that due to differences between the developer's environment and
- your own it is possible that a few tests may fail even though the results are
- ok. Differences between the developer's environment and your own
- may include the compiler, the CPU type, and the library versions used. The
- ImageMagick developers use the current release of all dependent libraries.
-
-Linux-specific Build instructions
-
- Download ImageMagick.src.rpm from ftp.imagemagick.org or its mirrors and
- verify the distribution against its message digest.
-
- Build ImageMagick with this command:
-
- $ rpmbuild --rebuild ImageMagick.src.rpm
-
- After the build, locate the RPMS folder and install the ImageMagick
- binary RPM distribution:
-
- $ rpm -ivh ImageMagick-7.1.1-?.*.rpm
-
-MinGW-specific Build instructions
-
- Although you can download and install delegate libraries yourself, many
- are already available in the GnuWin32 distribution. Download and install
- whichever delegate libraries you require such as JPEG, PNG, TIFF, etc. Make
- sure you specify the development headers when you install a package. Next
- type,
-
- $ tar jxvf ImageMagick-7.1.1-?.tar.bz2
- $ cd ImageMagick-7.1.1
- $ export CPPFLAGS="-Ic:/Progra~1/GnuWin32/include"
- $ export LDFLAGS="-Lc:/Progra~1/GnuWin32/lib"
- $ ./configure --without-perl
- $ make
- $ sudo make install
-
-Dealing with Unexpected Problems
-
- Chances are the download, configure, build, and install of ImageMagick went
- flawlessly as it is intended, however, certain systems and environments may
- cause one or more steps to fail. We discuss a few problems we've run across
- and how to take corrective action to ensure you have a working release
- of ImageMagick.
-
- Build Problems
-
- If the build complains about missing dependencies (e.g. .deps/source.PLO),
- add --disable-dependency-tracking to your configure command line.
-
- Some systems may fail to link at build time due to unresolved symbols. Try
- adding the LDFLAGS to the configure command line:
-
- $ configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
-
- Dynamic Linker Run-time Bindings
-
- On some systems, ImageMagick may not find its shared library, libMagick.so. Try
- running the ldconfig with the library path:
-
- $ /sbin/ldconfig /usr/local/lib
-
- Solaris and Linux systems have the ldd command which is useful to track which
- libraries ImageMagick depends on:
-
- $ ldd `which convert`
-
- Delegate Libraries
-
- On occasion you may receive these warnings:
-
- no decode delegate for this image format
- no encode delegate for this image format
-
- This exception indicates that an external delegate library or its headers
- were not available when ImageMagick was built. To add support for the image
- format, download and install the requisite delegate library and its header
- files and reconfigure, rebuild, and reinstall ImageMagick. As an example,
- let's add support for the JPEG image format. First we install the JPEG RPMS:
-
- $ yum install libjpeg libjpeg-devel
-
- or, on openSUSE:
-
- $ zypper install libjpeg8-devel
-
- Now reconfigure, rebuild, and reinstall ImageMagick. To verify JPEG is now
- properly supported within ImageMagick, use this command:
-
- $ identify -list format
-
- You should see a mode of rw- associated with the JPEG tag. This mode means
- the image can be read or written and can only support one image per image
- file.
-
-PerlMagick
-
- If PerlMagick fails to link with a message similar to libperl.a is not found,
- rerun configure with the --enable-shared or --enable-shared --with-modules
- options.
diff --git a/Install-windows.txt b/Install-windows.txt
deleted file mode 100644
index 4d0648bf9..000000000
--- a/Install-windows.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Instructions on how to build ImageMagick on Windows can be found here:
-https://github.com/ImageMagick/ImageMagick-Windows
diff --git a/MacOSInstallationGuide.md b/MacOSInstallationGuide.md
new file mode 100644
index 000000000..09fbaa467
--- /dev/null
+++ b/MacOSInstallationGuide.md
@@ -0,0 +1,186 @@
+# Installing ImageMagick on macOS
+
+ImageMagick runs natively on macOS across both **Apple Silicon (`arm64`)** and **Intel (`x86_64`)** architectures. You can install ImageMagick on macOS using one of three approaches:
+
+1. **Homebrew** *(Recommended)* — The fastest and easiest way to install a pre-compiled, feature-rich build.
+
+2. **MacPorts** — A robust package manager alternative for macOS.
+
+3. **Compiling from Source** — Ideal if you need custom `configure` flags, specific quantum depths, or non-standard installation prefixes.
+
+## 1. Prerequisites: Xcode Command Line Tools
+
+Before installing ImageMagick or any package manager on macOS, you must install Apple's **Xcode Command Line Tools**, which provide essential compilers (`clang`), `make`, and system headers.
+
+1. Open the **Terminal** app (`Applications > Utilities > Terminal.app`).
+
+2. Run the following command:
+
+ ```bash
+ xcode-select --install
+ ```
+
+3. Click **Install** in the pop-up dialog and accept the license agreement.
+
+> **Note:** Full **Xcode** from the Mac App Store is *not* required unless you plan to build macOS/iOS GUI apps or need the full macOS SDK GUI tools; the standalone Command Line Tools package is sufficient for ImageMagick.
+
+## 2. Method 1: Install via Homebrew (Recommended)
+
+[Homebrew](https://brew.sh) is the most popular package manager for macOS and provides an up-to-date ImageMagick 7 formula pre-configured with most common delegate libraries (including JPEG, PNG, TIFF, WebP, HEIC, FreeType, LittleCMS, and HDRI support).
+
+### Step 1: Install Homebrew
+
+If you do not already have Homebrew installed, visit <https://brew.sh> or run the official installation script in Terminal:
+
+```bash
+/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+```
+
+*(Follow the on-screen instructions at the end of the installation to add Homebrew to your shell `PATH`—`/opt/homebrew/bin` on Apple Silicon Macs or `/usr/local/bin` on Intel Macs.)*
+
+### Step 2: Install ImageMagick
+
+Install the latest stable release of ImageMagick:
+
+```bash
+brew install imagemagick
+```
+
+*(Note: If a legacy workflow specifically requires ImageMagick 6, you can install it side-by-side via `brew install imagemagick@6`.)*
+
+### Step 3: Verify the Installation
+
+Confirm that ImageMagick is installed and check its supported features and delegates:
+
+```bash
+magick -version
+magick -list format
+```
+
+### Customizing Homebrew Builds & Troubleshooting
+
+* **Customizing Build Options:** Unlike older versions of Homebrew, modern `brew install` no longer accepts inline `--with-*` flags. If you need to customize compilation flags (such as disabling HDRI or changing quantum depth), inspect and modify the formula locally:
+
+ ```bash
+ brew edit imagemagick
+ brew reinstall --build-from-source imagemagick
+ ```
+
+* **Troubleshooting Homebrew:** If you encounter permission issues, broken symlinks, or missing dependencies, run Homebrew's built-in diagnostic tool and follow its recommendations:
+
+ ```bash
+ brew doctor
+ ```
+
+## 3. Method 2: Install via MacPorts (Alternative)
+
+If you prefer [MacPorts](https://www.macports.org/) over Homebrew, you can install ImageMagick directly as a managed port without compiling it manually:
+
+1. Download and install the MacPorts `.pkg` installer for your macOS version from <https://www.macports.org/install.php>.
+
+2. Update your ports tree and install ImageMagick:
+
+ ```bash
+ sudo port selfupdate
+ sudo port install ImageMagick
+ ```
+
+*(By default, MacPorts installs binaries into `/opt/local/bin`.)*
+
+## 4. Method 3: Compile from Source
+
+*(Skip this section if you already installed ImageMagick using Method 1 or Method 2.)*
+
+Compiling ImageMagick from source gives you complete control over compiler optimizations, quantum depth, and optional delegate libraries.
+
+### Step 1: Install Delegate Libraries
+
+Before running `./configure`, install the third-party image and font delegate libraries you want ImageMagick to support. You can install these using either **MacPorts** or **Homebrew**:
+
+* **Option A: Using MacPorts** (installs headers and libraries into `/opt/local`):
+
+ ```bash
+ sudo port -v install freetype
+ sudo port -v install librsvg
+ sudo port -v install graphviz +gs +wmf +jbig +jpeg2 +lcms
+ sudo port install jpeg libpng tiff webp
+ ```
+
+* **Option B: Using Homebrew** (installs headers and libraries into `/opt/homebrew` on Apple Silicon or `/usr/local` on Intel):
+
+ ```bash
+ brew install jpeg libpng libtiff webp freetype little-cms2 librsvg ghostscript
+ ```
+
+### Step 2: Download & Unpack the Source Archive
+
+Download the latest ImageMagick source distribution from <https://imagemagick.org/archive/>, verify its SHA-256 checksum, and unpack it:
+
+```bash
+curl -O https://imagemagick.org/archive/ImageMagick.tar.gz
+tar xvzf ImageMagick.tar.gz
+cd ImageMagick-7.*
+```
+
+### Step 3: Configure the Build
+
+Configure ImageMagick while pointing `CPPFLAGS` and `LDFLAGS` to the directory where your package manager installed the delegate headers and libraries:
+
+* **If your delegates were installed via MacPorts (`/opt/local`):**
+
+ ```bash
+ ./configure --prefix=/opt/local \
+ CPPFLAGS="-I/opt/local/include" \
+ LDFLAGS="-L/opt/local/lib" \
+ --with-quantum-depth=16 \
+ --disable-dependency-tracking \
+ --without-perl
+ ```
+
+* **If your delegates were installed via Homebrew on Apple Silicon (`/opt/homebrew`):**
+
+ ```bash
+ ./configure --prefix=/usr/local \
+ CPPFLAGS="-I/opt/homebrew/include" \
+ LDFLAGS="-L/opt/homebrew/lib" \
+ --with-quantum-depth=16 \
+ --disable-dependency-tracking \
+ --without-perl
+ ```
+
+*(Note: On Intel Macs using Homebrew, replace `/opt/homebrew` with `/usr/local`. If you wish to build a universal macOS binary supporting both `arm64` and `x86_64`, ensure universal delegates are installed and pass `--enable-osx-universal-binary`.)*
+
+### Step 4: Compile & Install
+
+Compile ImageMagick using all available CPU cores and install it onto your system:
+
+```bash
+make -j$(sysctl -n hw.ncpu)
+sudo make install
+```
+
+### Step 5: Verify Your Source Installation
+
+Ensure your installation's `bin` directory (e.g., `/opt/local/bin` or `/usr/local/bin`) is in your `PATH`, then verify that ImageMagick detects its configuration, fonts, and image formats:
+
+```bash
+magick -version
+magick -list configure
+magick -list font
+```
+
+## 5. Troubleshooting Common macOS Issues
+
+* **`command not found: magick` (or `brew` / `port`):**
+ Ensure your package manager or custom `--prefix` `bin` directory is exported in your shell profile (`~/.zshrc` on modern macOS). For example, on Apple Silicon with Homebrew:
+
+ ```bash
+ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
+ source ~/.zshrc
+ ```
+
+* **Missing Image Delegates After Compiling from Source:**
+ If `magick -list format` does not show formats like `JPEG`, `PNG`, or `SVG`, `configure` could not locate your delegate headers or libraries. Verify that `CPPFLAGS` (`-I...`) and `LDFLAGS` (`-L...`) point to the exact directory where your delegate libraries reside, check `config.log` for details, and re-run `./configure`, `make`, and `sudo make install`.
+
+* **X11 Display Commands (`magick display` / `magick animate`) Not Working:**
+ macOS no longer includes an X11 server natively. If you need to use ImageMagick's X11 GUI tools, install [XQuartz](https://www.xquartz.org/) and log out and back in before running `magick display`.
\ No newline at end of file
diff --git a/Makefile.am b/Makefile.am
index a4672bc1b..005af7be4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -98,9 +98,9 @@ TOP_EXTRA_DIST = \
AUTHORS.txt \
LICENSE \
NOTICE \
- Install-mac.txt \
- Install-unix.txt \
- Install-windows.txt \
+ MacOSInstallationGuide.md \
+ UnixInstallationGuide.md \
+ WindowsInstallationGuide.md \
magick.sh.in \
Magickshr.opt \
index.html \
diff --git a/Makefile.in b/Makefile.in
index 711fcb058..203d5db00 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -3712,9 +3712,9 @@ TOP_EXTRA_DIST = \
AUTHORS.txt \
LICENSE \
NOTICE \
- Install-mac.txt \
- Install-unix.txt \
- Install-windows.txt \
+ MacOSInstallationGuide.md \
+ UnixInstallationGuide.md \
+ WindowsInstallationGuide.md \
magick.sh.in \
Magickshr.opt \
index.html \
@@ -6300,6 +6300,7 @@ TESTS_TESTS = \
tests/cli-mogrify.tap \
tests/cli-pcx.tap \
tests/cli-pipe.tap \
+ tests/cli-policy.tap \
tests/cli-svg.tap \
tests/cli-statistic.tap \
tests/cli-tiff.tap \
diff --git a/UnixInstallationGuide.md b/UnixInstallationGuide.md
new file mode 100644
index 000000000..a0f123447
--- /dev/null
+++ b/UnixInstallationGuide.md
@@ -0,0 +1,355 @@
+# Installing ImageMagick from Source on Unix-Like Systems
+
+ImageMagick builds from source on a wide variety of Unix and Unix-like operating systems, including Linux (Ubuntu, Debian, Fedora, RHEL, openSUSE), FreeBSD, macOS, and Windows (via MinGW/Cygwin/WSL). Compiling from source requires a standard C/C++ compiler (such as `gcc` or `clang`) and standard build tools (`make`), which are pre-installed or easily obtainable on virtually all modern Unix systems.
+
+---
+
+## 1. Download & Unpack
+
+First, download the latest source distribution archive from the official ImageMagick repository:
+* **Download URL:** `https://imagemagick.org/archive/ImageMagick.tar.gz`
+
+You can download it directly via your terminal using `curl` or `wget`:
+
+```bash
+$ wget https://imagemagick.org/archive/ImageMagick.tar.gz
+# OR
+$ curl -O https://imagemagick.org/archive/ImageMagick.tar.gz
+```
+
+Next, unpack the compressed tarball and navigate into the extracted source directory (note that the version number in the directory name will match the release you downloaded):
+
+```bash
+$ tar xvzf ImageMagick.tar.gz
+$ cd ImageMagick-7.1.1-*
+```
+
+Now that you have the ImageMagick source distribution unpacked, you are ready to configure the build environment.
+
+---
+
+## 2. Configure the Build
+
+The `configure` script inspects your system environment to determine how ImageMagick can be compiled and installed. Specifically, it checks for:
+* A working C and C++ compiler.
+* The locations of standard system header files (e.g., `stdlib.h`).
+* Available third-party **delegate libraries** that enable support for specific image formats (e.g., JPEG, PNG, TIFF, WebP, FreeType).
+
+### Basic Configuration
+If you are satisfied with the default configuration options and wish to build directly within the source directory, run:
+
+```bash
+$ ./configure
+```
+
+> **Tip:** Watch the `configure` script output carefully—especially the final summary lines—to verify that it detects all the compilers, features, and image format delegates you expect.
+
+### Customizing Environment Variables
+You can influence the compiler choice, optimization flags, and library search paths by passing environment variables directly to the `configure` command line:
+
+* **`CC`**: Name or path of the C compiler to use (e.g., `gcc`, `clang`, or `cc -Xa`).
+* **`CXX`**: Name or path of the C++ compiler to use (e.g., `g++` or `clang++`).
+* **`CFLAGS`**: Compiler flags for C code (e.g., `-g -O2`).
+* **`CXXFLAGS`**: Compiler flags for C++ code (e.g., `-g -O2`).
+* **`CPPFLAGS`**: Preprocessor flags, primarily used to specify include paths for header files (e.g., `-I/usr/local/include`).
+* **`LDFLAGS`**: Linker flags used to specify library search paths (e.g., `-L/usr/local/lib`). Systems that utilize a runtime library search path may require an additional argument so the dynamic linker can locate shared libraries at runtime:
+ * **Solaris linker:** `-R/usr/local/lib`
+ * **Linux (direct linker):** `-rpath /usr/local/lib`
+ * **Linux (via `gcc`):** `-Wl,-rpath,/usr/local/lib`
+* **`LIBS`**: Extra libraries required during the linking phase (e.g., `-lposix` or `-L/usr/local/lib -lcustom`).
+
+#### Example Custom Command
+```bash
+$ ./configure CC=c99 CFLAGS="-O2" LIBS="-lposix"
+```
+
+> **Important:** Any variable requiring a directory path (such as `CPPFLAGS` or `LDFLAGS`) **must** specify an absolute path rather than a relative path.
+
+If `configure` fails to automatically locate X11 Window System header and library files, you can specify them explicitly:
+```bash
+$ ./configure --x-includes=/path/to/include --x-libraries=/path/to/lib
+```
+
+---
+
+## 3. ImageMagick Configuration Options
+
+The `configure` script provides numerous ImageMagick-specific flags. To view a complete, up-to-date list of all flags supported by your version, run:
+
+```bash
+$ ./configure --help
+```
+
+### Understanding Features vs. Packages
+ImageMagick flags fall into two categories:
+1. **Features (`--enable-FEATURE` / `--disable-FEATURE`)**: Toggles internal code already built into ImageMagick. Using `--disable-something` is equivalent to `--enable-something=no`.
+2. **Packages (`--with-PACKAGE` / `--without-PACKAGE`)**: Instructs `configure` to search for external third-party libraries (delegates). If the headers and compiled libraries are found, support is compiled in. Using `--without-something` is equivalent to `--with-something=no`.
+
+By default, **most features are disabled** and **all detected packages are enabled**. Typically, you only need to disable a package if an installed library on your system is outdated, broken, or compiled with incompatible flags.
+
+---
+
+### Optional Build Features
+
+* **`--enable-shared`** *(Recommended)*
+ Builds shared libraries (`.so`, `.dylib`, `.dll`) and enables support for dynamically loading coder and filter modules. Shared libraries allow multiple programs to share common code, drastically reducing binary sizes. Furthermore, shared libraries are **required** if you want your existing Perl interpreter to dynamically load `PerlMagick`; otherwise, a separate, statically linked Perl binary must be built and installed.
+ * *Delegate Dependency Note:* If ImageMagick is built statically (the default when `--enable-shared` is omitted), delegate libraries can be either static (`.a`) or shared. However, if ImageMagick is built using `--enable-shared`, **all delegate libraries must also be built as shared libraries** using Position Independent Code (e.g., compiled with `-fPIC` in `gcc`).
+
+* **`--disable-static`**
+ Prevents the building of static archive libraries (`.a`). If you are building shared libraries (`--enable-shared`), static archives are usually unnecessary and skipping them speeds up compilation.
+ * *When to keep static libraries:* 1) They are often easier to debug; 2) Resulting binaries have no external runtime dependencies (like `libMagickCore.so`); 3) Recompiling third-party delegates with `-fPIC` can require extra effort; 4) Your target platform does not support shared libraries.
+
+* **`--disable-installed`** *(Default: enabled)*
+ Disables configuring ImageMagick to run from a fixed, system-wide installation directory tree. By default, hard-coded installation paths are compiled into the binaries for maximum security and reliability. Passing `--disable-installed` configures ImageMagick to locate its configuration and coder files relative to the executable's location (or via the `MAGICK_HOME` environment variable). This is ideal for portable or relocatable binary distributions.
+
+* **`--disable-openmp`** *(Default: enabled)*
+ Disables OpenMP multi-processing support. Many computationally intensive ImageMagick algorithms (such as convolution and resizing) achieve substantial speedups on multi-core processors when OpenMP is enabled. Disable this only if you encounter threading conflicts with an application embedding ImageMagick (such as certain Apache/PHP configurations).
+
+* **`--disable-largefile`** *(Default: enabled if supported by OS)*
+ Disables support for 64-bit file offsets. By default, ImageMagick supports files larger than 2 GB on 32-bit architectures. Disabling this may occasionally be necessary if linking against legacy 32-bit applications that were not compiled with large-file support flags.
+
+* **Debugging & Profiling Flags** *(All disabled by default)*:
+ * `--enable-ccmalloc`: Enables `ccmalloc` memory debugging support.
+ * `--enable-prof`: Enables standard `prof` profiling support.
+ * `--enable-gprof`: Enables GNU `gprof` profiling support.
+ * `--enable-gcov`: Enables GNU `gcov` code coverage analysis.
+
+---
+
+### Quantum Depth & Memory Configuration
+
+* **`--with-quantum-depth=BITS`** *(Default: `16`)*
+ Sets the bit-depth of a single pixel quantum (the size of each individual Red, Green, Blue, and Alpha channel). Supported values are `8`, `16`, or `32`.
+ * **8-bit (`Q8`)**: Matches standard computer displays. Fastest execution and lowest memory footprint, but may introduce banding during heavy color manipulation.
+ * **16-bit (`Q16`, Recommended)**: Preserves high color fidelity and supports 16-bit-per-channel image formats (such as raw camera files and high-end TIFF/PNGs).
+ * **32-bit (`Q32`)**: Ultra-high precision for scientific or specialized visual effects pipelines.
+
+ Each quantum step supports $256$ times ($2^8$) as many discrete values as the previous level:
+
+ | Quantum Depth | Valid Value Range (Decimal) | Valid Value Range (Hexadecimal) |
+ | :--- | :--- | :--- |
+ | **8-bit (Q8)** | `0` – `255` | `00` – `FF` |
+ | **16-bit (Q16)** | `0` – `65535` | `0000` – `FFFF` |
+ | **32-bit (Q32)** | `0` – `4294967295` | `00000000` – `FFFFFFFF` |
+
+ **Performance & Memory Impact:** Higher quantum depths require more RAM and CPU cycles. For instance, `Q16` typically runs 15% to 50% slower and consumes twice as much memory as `Q8`. Because image processing often holds multiple copies of an image in memory simultaneously, you can estimate the virtual memory required for a single image using the formula:
+
+ $$\text{Memory (Bytes)} = \frac{5 \times \text{Quantum Depth} \times \text{Rows} \times \text{Columns}}{8}$$
+
+ For a standard $1024 \times 768$ image, approximate memory consumption per image is:
+
+ | Quantum Depth | Approximate Virtual Memory |
+ | :--- | :--- |
+ | **8-bit (Q8)** | ~3 MB |
+ | **16-bit (Q16)** | ~8 MB |
+ | **32-bit (Q32)** | ~15 MB |
+
+* **`--enable-hdri`** *(Default: enabled in IMv7; optional in IMv6)*
+ Enables High Dynamic Range Imaging (HDRI), storing pixel components as floating-point values rather than integers. This prevents value clipping during intermediate processing steps and accurately represents extreme intensity ranges.
+
+* **`--with-cache=THRESHOLD`** *(Defaults to available system RAM)*
+ Sets the pixel cache heap memory threshold (in megabytes). Once image data exceeds this threshold in RAM, ImageMagick automatically spills raw pixel data to memory-mapped temporary files on disk.
+
+---
+
+### Optional Packages & System Integrations
+
+* **`--without-modules`**
+ Disables building image coders and filters as dynamically loadable modules. When enabled (requires `--enable-shared`), modules are installed under `[prefix]/lib/ImageMagick-X.X.X/modules-QN/` (where `N` is `8`, `16`, or `32`). Note: If you specify both `--enable-shared` and `--disable-modules`, the dynamic module loader remains active (allowing you to drop in third-party plugins later), while ImageMagick's built-in coders are compiled directly into the core library.
+
+* **`--without-threads`**
+ Disables POSIX multi-threading support inside the ImageMagick library.
+
+* **`--with-frozenpaths`**
+ Hard-codes the full filesystem paths of external delegate executables (such as `gs` or `ffmpeg`) into `delegates.xml` based on what `configure` finds. Useful in server environments where end-users have restricted or differing `PATH` variables.
+
+* **`--without-magick-plus-plus`**
+ Disables building `Magick++`, the C++ API wrapper for ImageMagick. Requires a modern C++ compiler (`CXX`).
+
+* **`--with-package-release-name=NAME`**
+ Encodes a custom release string into the shared library filenames (via libtool's `-release` flag).
+
+* **`--enable-osx-universal-binary`**
+ Builds a multi-architecture universal binary on macOS (e.g., `x86_64` and `arm64`).
+
+* **`--with-share-path=DIR`**
+ Specifies an alternate path for architecture-independent data files (defaults to `[prefix]/share/ImageMagick`).
+
+* **`--with-libstdc=DIR`**
+ Specifies the directory containing `libstdc++` when using GNU C++.
+
+#### PerlMagick Options
+* **`--without-perl`**: Disables automatic compilation and installation of `PerlMagick` during the main `make` step. (You can still build it manually later from the `PerlMagick/` subdirectory).
+* **`--with-perl=/path/to/perl`**: Specifies a particular Perl binary if the default `perl` in your `PATH` is not Perl 5 or is not the interpreter you wish to target.
+* **`--with-perl-options=OPTIONS`**: Passes extra arguments to `Makefile.PL`. By default, `PerlMagick` installs into your Perl interpreter's `PREFIX`, which may require root permissions if Perl is system-managed. To install `PerlMagick` into a custom directory, use:
+ `--with-perl-options="PREFIX=/custom/path"` (Other valid `MakeMaker` options include `LIB`, `LIBPERL_A`, `LINKTYPE`, and `OPTIMIZE`).
+
+#### Font & Display Options
+* **`--with-fontpath=DIR`**: Prepends a custom directory to ImageMagick's default font search path.
+* **`--with-gs-font-dir=DIR`**: Specifies the directory containing Ghostscript PostScript Type 1 font files (e.g., `n022003l.pfb`) for rendering via FreeType. Usually auto-detected at `${prefix}/share/ghostscript/fonts`.
+* **`--with-windows-font-dir=DIR`**: Specifies a directory containing Microsoft TrueType fonts on non-Windows systems.
+* **`--without-x`**: Disables X11 Window System support. Graphical sub-commands (`display`, `animate`, and `import`) will not be built, and X11 fonts will be unavailable (use TrueType or PostScript fonts instead).
+
+#### Image Format & Compression Delegates
+Disable or enable specific format libraries using these flags:
+* **Compression:** `--without-bzlib`, `--without-lzma`, `--without-zlib`
+* **Raster Formats:** `--without-jbig`, `--without-jpeg`, `--without-jp2` (JPEG 2000), `--without-png`, `--without-tiff`, `--without-webp`, `--with-fpx` (FlashPIX)
+* **Vector & Document Formats:** `--without-dps` (Display PostScript), `--with-gslib` (Ghostscript library), `--without-wmf` (Windows Metafile), `--without-xml`
+* **Typography & Color Management:** `--without-freetype` (TrueType), `--without-lcms` (LittleCMS v1), `--without-lcms2` (LittleCMS v2)
+
+---
+
+### Troubleshooting Configuration Failures
+
+The `configure` script validates headers and libraries by compiling tiny test programs using your specified `CC`, `CFLAGS`, `CPPFLAGS`, and `LDFLAGS`. All test results and compiler outputs are recorded in **`config.log`**.
+
+> **Note:** Seeing compiler errors inside `config.log` is completely normal! The script deliberately probes for optional features and platform-specific headers by testing whether they fail. An error in `config.log` is only a concern if a test failed for a library you know is installed.
+
+**Common Causes of `configure` Failures:**
+1. A delegate header file is not in the compiler's include path (fix via `CPPFLAGS="-I/path/to/include"`).
+2. A delegate library is not in the linker's search or runtime path (fix via `LDFLAGS="-L/path/to/lib -Wl,-rpath,/path/to/lib"`).
+3. An installed delegate library is too old and lacks a required symbol/function.
+4. Your compiler toolchain or environment variables are misconfigured.
+
+If you suspect an actual bug in the `configure` script, report it on the [ImageMagick Discussions/Support Forum](https://github.com/ImageMagick/ImageMagick/discussions). Include your OS details (`uname -a`), your compiler version (`gcc --version` or `clang --version`), the `configure` output, and the relevant failure snippet from `config.log`.
+
+---
+
+## 4. Build & Install
+
+Once `configure` completes without critical errors, compile ImageMagick using `make` (you can pass `-j$(nproc)` on Linux or `-j$(sysctl -n hw.ncpu)` on macOS to speed up compilation across multiple CPU cores):
+
+```bash
+$ make -j4
+```
+
+### Standard `make` Targets
+* **`make`**: Compiles the ImageMagick libraries and command-line utilities.
+* **`sudo make install`**: Installs the compiled binaries, libraries, headers, and documentation onto your system.
+* **`make check`**: Runs the automated test suite against your installation (must be run *after* `make install`). Note that Ghostscript (`gs`) must be installed for EPS, PS, and PDF tests to pass.
+* **`make clean`**: Removes compiled object files and binaries from the build directory while preserving your `./configure` settings.
+* **`make distclean`**: Removes all files generated by both `./configure` and `make`, returning the source tree to its original state.
+* **`make uninstall`**: Removes all files installed by `make install` (note: Perl no longer supports an automated `uninstall` target for `PerlMagick`).
+
+### Installation Directories
+Install ImageMagick onto your system:
+
+```bash
+$ sudo make install
+```
+
+By default, files are installed under `/usr/local`:
+* **Binaries:** `/usr/local/bin`
+* **Libraries:** `/usr/local/lib`
+* **Header files:** `/usr/local/include`
+* **Documentation & config:** `/usr/local/share`
+
+To install to a custom directory (for example, if you lack `root` privileges or want to isolate the build), pass `--prefix=/path/to/install` during the `./configure` step.
+
+---
+
+## 5. Verify the Installation
+
+Ensure your installation's `bin` directory (e.g., `/usr/local/bin`) is included in your `PATH`, then run the following verification commands:
+
+1. **Check the build configuration and active delegates:**
+ ```bash
+ $ magick -list configure
+ # (Or on older IMv6 setups: identify -list configure)
+ ```
+
+2. **List all supported image formats and read/write modes:**
+ ```bash
+ $ magick -list format
+ ```
+
+3. **Test X11 GUI display (if built with X11 support):**
+ ```bash
+ $ magick display
+ ```
+ This should open the ImageMagick logo on your X11 display.
+
+4. **Run the full test suite:**
+ ```bash
+ $ make check
+ ```
+ *(Note: Minor test discrepancies can occasionally occur due to differences in CPU architecture, compiler optimizations, or third-party delegate versions compared to the developers' reference environment.)*
+
+---
+
+## 6. Platform-Specific Build Instructions
+
+### Building an RPM on Linux (RHEL / Fedora / CentOS)
+1. Download `ImageMagick.src.rpm` from the official ImageMagick archive or mirror and verify its SHA-256 checksum.
+2. Rebuild the source RPM into binary RPM packages:
+ ```bash
+ $ rpmbuild --rebuild ImageMagick.src.rpm
+ ```
+3. Locate the generated packages in your `~/rpmbuild/RPMS/` directory and install them:
+ ```bash
+ $ sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/ImageMagick-7.1.1-*.rpm
+ ```
+
+### Building on Windows with MinGW
+While you can compile delegate libraries from source, pre-compiled packages are readily available via MSYS2 or GnuWin32. Ensure you install the **development headers** alongside the binaries for formats like JPEG, PNG, and TIFF.
+
+```bash
+$ tar xvjf ImageMagick-7.1.1-*.tar.bz2
+$ cd ImageMagick-7.1.1-*
+$ export CPPFLAGS="-Ic:/Progra~1/GnuWin32/include"
+$ export LDFLAGS="-Lc:/Progra~1/GnuWin32/lib"
+$ ./configure --without-perl
+$ make
+$ make install
+```
+
+---
+
+## 7. Troubleshooting Common Post-Build Issues
+
+### Missing Dependency Tracking Files (`.deps/source.PLO`)
+If `make` fails with errors complaining about missing `.deps` files, re-run configuration with dependency tracking disabled:
+```bash
+$ ./configure --disable-dependency-tracking
+```
+
+### Unresolved Symbols During Linking
+If linking fails due to unresolved symbols in third-party libraries, explicitly supply both the library path (`-L`) and runtime path (`-R` or `-Wl,-rpath`):
+```bash
+$ ./configure LDFLAGS="-L/usr/local/lib -Wl,-rpath,/usr/local/lib"
+```
+
+### Shared Library Not Found at Runtime (`libMagickCore.so`)
+If running `magick` produces an error stating that `libMagickCore` or `libMagickWand` cannot be opened, update your system's dynamic linker cache:
+```bash
+$ sudo /sbin/ldconfig /usr/local/lib
+```
+To inspect which shared libraries the executable is linking against on Linux or Solaris, run:
+```bash
+$ ldd $(which magick)
+```
+
+### Missing Format Support (`no decode/encode delegate for this image format`)
+If you encounter warnings such as:
+```text
+no decode delegate for this image format `JPEG'
+no encode delegate for this image format `JPEG'
+```
+This means the required third-party library or its development headers (`-devel` or `-dev` package) were missing when `./configure` was executed.
+
+**How to fix:**
+1. Install both the runtime library and the development headers using your system's package manager:
+ * **Debian / Ubuntu:** `sudo apt-get install libjpeg-dev`
+ * **RHEL / Fedora / CentOS:** `sudo dnf install libjpeg-turbo-devel` (or `yum install libjpeg-devel`)
+ * **openSUSE:** `sudo zypper install libjpeg8-devel`
+2. Re-run `./configure`, `make`, and `sudo make install` in your ImageMagick source directory.
+3. Verify that the format now appears with `rw-` (read/write) permissions:
+ ```bash
+ $ magick -list format | grep -i jpeg
+ ```
+
+### `PerlMagick` Linking Errors (`libperl.a not found`)
+If `PerlMagick` fails to link because a static `libperl.a` archive cannot be located on your system, reconfigure ImageMagick to build shared libraries and loadable modules:
+```bash
+$ ./configure --enable-shared --with-modules
+```
\ No newline at end of file
diff --git a/WindowsInstallationGuide.md b/WindowsInstallationGuide.md
new file mode 100644
index 000000000..bc1ab53b6
--- /dev/null
+++ b/WindowsInstallationGuide.md
@@ -0,0 +1,144 @@
+# Installing ImageMagick from Source on Windows
+
+Building ImageMagick from source on Windows requires a modern version of Microsoft Visual Studio and Git. Rather than merely pointing to an external repository, this guide provides complete, step-by-step instructions for setting up your build environment, cloning dependencies, configuring build options, and compiling ImageMagick natively on Windows.
+
+> **Repository Update Note:** The legacy `ImageMagick/ImageMagick-Windows` repository (`https://github.com/ImageMagick/ImageMagick-Windows`) was archived and is no longer actively maintained. Active development and build scripts for Windows now reside in the official repository: **`https://github.com/ImageMagick/Windows`**.
+>
+> *(If you do not need to customize compilation flags or build from source, you can download pre-compiled self-installing binary releases directly from [imagemagick.org](https://imagemagick.org/script/download.php#windows).)*
+
+## 1. Prerequisites & Visual Studio Setup
+
+Before cloning the source code, ensure the following tools are installed on your Windows machine:
+
+* **Microsoft Visual Studio** (Visual Studio 2019 or Visual Studio 2022 recommended)
+* **Git for Windows** (`https://git-scm.com/download/win`)
+* **OpenCL SDK** *(Optional)* — Required only if you intend to enable GPU acceleration via OpenCL.
+
+### Required Visual Studio Components
+
+Launch the **Visual Studio Installer**, modify your installation, and verify that the following workload and individual components are selected:
+
+1. **Workload:**
+ * **Desktop development with C++**
+2. **Individual Components:**
+ * **Visual C++ ATL for x86 and x64**
+ * **Visual C++ MFC for x86 and x64**
+
+*(Note: Exact component names may vary slightly depending on your version of Visual Studio.)*
+
+## 2. Clone the Repository & Dependencies
+
+ImageMagick relies on numerous third-party delegate libraries (such as `libjpeg`, `libpng`, `libtiff`, `zlib`, and `FreeType`) to support various image formats. The Windows build repository includes helper scripts to automatically fetch the main ImageMagick source alongside all required third-party dependencies.
+
+1. Open **Command Prompt (`cmd.exe`)** or **PowerShell** and navigate to the directory where you want to store the source code (use a short path without spaces, such as `C:\src`, to avoid path-length issues):
+
+ ```bat
+ mkdir C:\src
+ cd C:\src
+ ```
+
+2. Clone the official ImageMagick Windows build repository:
+
+ ```bat
+ git clone https://github.com/ImageMagick/Windows.git ImageMagick-Windows
+ cd ImageMagick-Windows
+ ```
+
+3. Run the repository cloning script to download ImageMagick 7 and its third-party delegate libraries:
+
+ ```bat
+ clone-repositories-im7.cmd
+ ```
+
+ *(Note: If you are building a specific tagged release version, you can pass the version tag as an argument, e.g., `clone-repositories-im7.cmd 7.1.2-8`.)*
+
+## 3. Build the Configuration Utility (`Configure.exe`)
+
+ImageMagick uses a graphical configuration wizard (`Configure.exe`) to generate custom Visual Studio solution (`.sln`) and project (`.vcxproj`) files tailored to your architecture and feature preferences.
+
+1. Navigate into the `Configure` directory inside your cloned repository and open **`Configure.sln`** in Visual Studio.
+2. In the Visual Studio toolbar at the top:
+ * Set the **Solution Configuration** dropdown to **`Release`**.
+ * Set the **Solution Platforms** dropdown to **`x64`** (or `Win32`/`ARM64` depending on your target architecture).
+3. Build the solution by pressing **`Ctrl + Shift + B`** or selecting **Build > Build Solution** from the top menu.
+4. Once compilation succeeds, locate and run the generated executable (typically found inside `Configure\Artifacts\Release\x64\bin\Configure.Release.x64.exe` or `Configure\Configure.exe`).
+
+## 4. Configure Build Options
+
+Running the configuration executable launches the **ImageMagick Configuration Wizard**, where you can customize your build:
+
+### Runtime Linking Model
+
+Choose how ImageMagick links against the Microsoft C++ Runtime and internal libraries:
+
+* **Dynamic Multi-threaded DLL runtimes (`IM7.Dynamic.x64.sln`)** *(Recommended)*
+ Builds ImageMagick libraries (`CORE_RL_MagickCore_.dll`, `CORE_RL_MagickWand_.dll`) and image format coders as modular DLLs. This results in smaller executables and allows dynamic loading of modules.
+* **Static Multi-threaded DLL runtimes (`IM7.StaticDLL.x64.sln`)**
+ Links ImageMagick's internal libraries statically into the executables while still linking dynamically to the Windows C/C++ runtime DLLs.
+* **Static Multi-threaded runtimes (`IM7.Static.x64.sln`)**
+ Produces completely standalone executables with all ImageMagick code and Windows runtime libraries statically linked inside.
+
+### Additional Build Settings
+
+Within the wizard, you can also adjust:
+
+* **Quantum Depth (`Q8`, `Q16`, or `Q32`):** Defaults to `16` bits per channel. Choose `Q8` for lower memory usage and faster processing, or `Q16` for high color precision.
+* **HDRI Support:** Enabled by default in ImageMagick 7 for floating-point pixel accuracy.
+* **OpenMP / OpenCL:** Toggle multi-core CPU parallelization (`OpenMP`) or GPU acceleration (`OpenCL`).
+* **Target Architecture:** Select `x64`, `Win32` (x86), or `ARM64`.
+
+Click **Next** through the wizard pages and click **Finish** to generate the corresponding Visual Studio solution file in the root of your `ImageMagick-Windows` folder.
+
+## 5. Compile ImageMagick
+
+1. Return to the root `ImageMagick-Windows` directory and open the generated solution file (for example, **`IM7.Dynamic.x64.sln`**) in Visual Studio.
+2. Verify that the top toolbar is set to **`Release`** and **`x64`** (matching the choices you made in the Configuration Wizard).
+3. Select **Build > Build Solution** (or press **`Ctrl + Shift + B`**).
+ * *Note: Compiling ImageMagick and all third-party delegate libraries from scratch can take several minutes depending on your CPU.*
+4. Once the build finishes, your compiled binaries (`magick.exe`), DLLs, and configuration XML files will be located in the **`Artifacts\bin`** (or `Output\bin`) folder.
+
+## 6. Verify the Installation
+
+To test your freshly compiled Windows build:
+
+1. Open **Command Prompt (`cmd.exe`)** and navigate to the output `bin` directory:
+
+ ```bat
+ cd C:\src\ImageMagick-Windows\Artifacts\bin
+ ```
+
+2. Verify the version, build features, and active delegates:
+
+ ```bat
+ magick -version
+ magick -list configure
+ ```
+
+3. Generate a test image using ImageMagick's built-in logo wizard and inspect its properties:
+
+ ```bat
+ magick logo: test_logo.png
+ magick identify test_logo.png
+ ```
+
+4. *(Optional)* To use `magick` from any terminal window, add the full path of your `Artifacts\bin` folder to your Windows **`PATH`** environment variable.
+
+## 7. Using ImageMagick Programmatically (C/C++)
+
+If you are compiling ImageMagick on Windows to integrate **`MagickCore`**, **`MagickWand`**, or **`Magick++`** into your own C/C++ Visual Studio project:
+
+1. **Include Directories:** Add the `Artifacts\include` directory (or the root source headers) under **Project Properties > C/C++ > General > Additional Include Directories**.
+2. **Library Directories:** Add `Artifacts\lib` under **Project Properties > Linker > General > Additional Library Directories**.
+3. **Linker Dependencies:** Add the `.lib` files (`CORE_RL_MagickCore_.lib`, `CORE_RL_MagickWand_.lib`, `CORE_RL_Magick++_.lib`) under **Project Properties > Linker > Input > Additional Dependencies**.
+4. **Runtime DLLs:** Ensure the compiled `.dll` and `.xml` files from `Artifacts\bin` are placed in the same folder as your application's `.exe` (or in your system `PATH`).
+
+## 8. Troubleshooting Common Windows Build Issues
+
+* **Missing ATL/MFC Header Errors (`afxres.h` or `atlbase.h` not found):**
+ Open the **Visual Studio Installer**, click **Modify**, and ensure both **Visual C++ ATL** and **Visual C++ MFC** components are installed for your target architecture.
+* **Path Length Errors During Compilation:**
+ Windows APIs can fail when nested build paths exceed 260 characters. Clone the repository into a shallow root folder such as `C:\IM` rather than inside `C:\Users\<Username>\Documents\...`.
+* **OpenMP or OpenCL Compilation Errors:**
+ If you do not have an OpenCL SDK installed or encounter compiler mismatches with OpenMP, re-run `Configure.exe`, uncheck **Enable OpenCL** and/or **Enable OpenMP**, regenerate the `.sln` file, and rebuild.
+* **Missing DLLs When Running `magick.exe`:**
+ If Windows reports missing `VCRUNTIME140.dll` or `MSVCP140.dll` on another machine, install the latest [Microsoft Visual C++ Redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist) or rebuild ImageMagick using the **Static (`IM7.Static.x64.sln`)** configuration.
\ No newline at end of file
diff --git a/configure b/configure
index dd907688f..89771a6fc 100755
--- a/configure
+++ b/configure
@@ -5315,7 +5315,7 @@ MAGICK_PATCHLEVEL_VERSION=37
MAGICK_VERSION=7.1.2-37
-MAGICK_GIT_REVISION=e9fc42642:20261122
+MAGICK_GIT_REVISION=40b98b240:20261204
# Substitute library versioning
@@ -5349,7 +5349,7 @@ PACKAGE_LIB_VERSION=0x712
PACKAGE_LIB_VERSION_NUMBER=7,1,2,37
-PACKAGE_RELEASE_DATE=2026-11-22
+PACKAGE_RELEASE_DATE=2026-12-04
# Ensure that make can run correctly