# 使用 Homebrew, apk, chocolatey, apt, Nix, pacman, dnf, MacPorts, scoop, zypper 安装 graphicsmagick

查看 graphicsmagick 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:graphicsmagick
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install graphicsmagick
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install GraphicsMagick
```

  证据: MacPorts ports tree: graphics/GraphicsMagick/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add graphicsmagick
```

  证据: Alpine Linux edge package indexes: graphicsmagick from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install graphicsmagick
```

  证据: Debian stable package indexes: graphicsmagick from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#graphicsmagick
```

  证据: nixpkgs package indexes: pkgs/by-name/gr/graphicsmagick/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S graphicsmagick
```

  证据: Arch Linux sync databases: graphicsmagick from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- dnf (92%):

```sh
sudo dnf install GraphicsMagick
```

  证据: Fedora Rawhide package metadata: GraphicsMagick from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- zypper (92%):

```sh
sudo zypper install GraphicsMagick
```

  证据: openSUSE Tumbleweed package metadata: GraphicsMagick from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install graphicsmagick
```

  证据: Chocolatey community package catalog: graphicsmagick from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','google-workspace-sync'

- Scoop (92%):

```sh
scoop install main/graphicsmagick
```

  证据: Scoop official bucket manifest trees: bucket/graphicsmagick.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:graphicsmagick
- **软件包管理器:** Homebrew
- **版本:** 1.3.48
- **来源摘要:** Image processing tools collection
- **主页:** <https://graphicsmagick.sourceforge.io/>
- **最后更新:** 2026-07-24T00:10:30Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- GraphicsMagick++-config (别名)
- GraphicsMagick-config (别名)
- GraphicsMagickWand-config (别名)
- gm (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.3.48
## 项目历史与用法

GraphicsMagick is a command-line and library image-processing suite centered on the `gm` executable. It descends from ImageMagick but intentionally emphasizes long-term interface compatibility, a stable release branch, smaller dependency footprints, and predictable behavior for scripted image conversion workflows.

In package-manager culture it occupies the practical space between heavyweight imaging frameworks and single-purpose converters: install it, call `gm convert`, `gm identify`, or `gm mogrify`, and get a stable Unix-friendly toolchain for raster and vector image transformations.

### 项目历史

The project was created on November 19, 2002 as a fork of ImageMagick shortly before the ImageMagick 5.5.2 release. The GraphicsMagick project described its objectives as open development, developer participation, reduced source churn, a preserved stable API, efficient code, improved memory use, a reliable release process, and an accurate ChangeLog.

Early releases renamed the installed libraries, headers, configuration scripts, and Perl namespace from ImageMagick names to GraphicsMagick names, while consolidating user-facing utilities behind the `gm` command. That namespace split made it possible for systems to package GraphicsMagick alongside other image tools without pretending it was only a drop-in binary clone.

GraphicsMagick's FAQ frames the fork as a stability and compatibility project: command syntax and APIs remained upward compatible with ImageMagick 5.5.2, while GraphicsMagick stopped importing later ImageMagick source after licensing and project-direction changes. This makes the package historically important as both a technical fork and a packaging-policy fork.

### 采用历史

GraphicsMagick became attractive to Unix package maintainers because it retained a permissive MIT-style license, exposed command-line tools and C/C++ APIs, and kept dependencies comparatively restrained. Its own FAQ calls out smaller installation footprint and fewer external libraries than ImageMagick on some systems, which is exactly the kind of difference distribution maintainers notice.

The package spread through mainstream operating-system package sets as a stable image conversion dependency for scripts, build systems, and web backends. Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Alpine, Chocolatey, Scoop, and other package managers all carry it under recognizable GraphicsMagick naming.

The project also invested in performance work useful to batch processing: release notes describe OpenMP acceleration, multi-core CPU work, faster image I/O, and optimizations for large images. Those choices helped GraphicsMagick retain relevance in server-side conversion pipelines where reproducibility and throughput matter more than a broad UI surface.

### 使用方式

The common package-manager use case is installing the `gm` CLI and invoking subcommands such as `gm convert`, `gm identify`, `gm mogrify`, `gm montage`, `gm composite`, and `gm display`. Existing ImageMagick 5-era scripts often require only the `gm` prefix or compatibility links, while new scripts can rely on the explicit GraphicsMagick command namespace.

GraphicsMagick is also used as a library dependency through GraphicsMagick, GraphicsMagick++, and GraphicsMagickWand configuration scripts. Build systems use those scripts or pkg-config metadata to compile software that reads, writes, transforms, or inspects images.

Configuration lives in `.mgk` files such as colors, delegates, log, modules, and type definitions. That matters to packagers because delegate programs and codec support vary by platform and build options.

### 为什么软件包爱好者会关心

GraphicsMagick is a classic fork that package maintainers can explain in one sentence: ImageMagick lineage, steadier API, smaller dependency appetite, and the `gm` command. That clarity made it easy to expose as an alternative dependency in ports trees and Linux distributions.

It is also a useful example of why package history is not only version numbers. Licensing, trademarks, API stability, dependency count, and command naming all shaped the package's identity as much as image-processing features did.

For Homebrew-style users, GraphicsMagick is the kind of formula installed indirectly by image workflows and directly by people who prefer predictable CLI behavior for scripted conversion jobs.

### 时间线

- 1992: ImageMagick development began at E. I. du Pont de Nemours and Company, according to the GraphicsMagick FAQ.
- 1999: ImageMagick Studio LLC forked ImageMagick, according to the GraphicsMagick FAQ.
- 2002: GraphicsMagick was created as a fork shortly before ImageMagick 5.5.2.
- 2003: GraphicsMagick 1.0 was released, with renamed libraries and utilities consolidated under `gm`.
- 2004: GraphicsMagick 1.1 followed with additional platform and stability work.
- 2008: GraphicsMagick 1.3 established a long-lived release line.

### Related projects

- ImageMagick is the direct ancestor and the project GraphicsMagick is most often compared with.
- Ghostscript, FreeType, libpng, libtiff, libjpeg, WebP, and other delegate libraries shape which formats a GraphicsMagick build can handle.
- Graphviz is unrelated technically but often appears nearby in package graphs because both are long-lived Unix graphics tools with CLI-first workflows.

### 来源

- <https://foss.heptapod.net/graphicsmagick/graphicsmagick>
- <https://graphicsmagick.sourceforge.io/FAQ.html>
- <https://graphicsmagick.sourceforge.io/NEWS.html>
- <https://graphicsmagick.sourceforge.io/README.html>


## 安全说明

没有找到 graphicsmagick 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.magick/colors.mgk, ~/.magick/delegates.mgk, ~/.magick/log.mgk, ~/.magick/modules.mgk, ~/.magick/type.mgk
## 其他软件包管理器记录

- Debian apt - graphicsmagick - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: graphicsmagick from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | collection of image processing tools | http://www.graphicsmagick.org/
- Debian apt - graphicsmagick-dbg - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: graphicsmagick-dbg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | format-independent image processing - debugging symbols | http://www.graphicsmagick.org/
- Debian apt - graphicsmagick-imagemagick-compat - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: graphicsmagick-imagemagick-compat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | image processing tools providing ImageMagick interface | http://www.graphicsmagick.org/
- Debian apt - graphicsmagick-libmagick-dev-compat - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: graphicsmagick-libmagick-dev-compat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | image processing libraries providing ImageMagick interface | http://www.graphicsmagick.org/
- Debian apt - libgraphics-magick-perl - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: libgraphics-magick-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | format-independent image processing - perl interface | http://www.graphicsmagick.org/
- Debian apt - libgraphicsmagick++-q16-12t64 - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: libgraphicsmagick++-q16-12t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | format-independent image processing - C++ shared library | http://www.graphicsmagick.org/
- Debian apt - libgraphicsmagick++1-dev - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: libgraphicsmagick++1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | format-independent image processing - C++ development files | http://www.graphicsmagick.org/
- Debian apt - libgraphicsmagick-q16-3t64 - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: libgraphicsmagick-q16-3t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | format-independent image processing - C shared library | http://www.graphicsmagick.org/
- Debian apt - libgraphicsmagick1-dev - 1.4+really1.3.45+hg17696-1: normalized package name match | Debian stable package indexes: libgraphicsmagick1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | format-independent image processing - C development files | http://www.graphicsmagick.org/
- Nix - graphicsmagick: normalized package name match | nixpkgs package indexes: pkgs/by-name/gr/graphicsmagick/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - graphicsmagick - 1.4+really1.3.42-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: graphicsmagick from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | collection of image processing tools | http://www.graphicsmagick.org/
- Ubuntu apt - graphicsmagick-dbg - 1.4+really1.3.42-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: graphicsmagick-dbg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | format-independent image processing - debugging symbols | http://www.graphicsmagick.org/
- Ubuntu apt - graphicsmagick-imagemagick-compat - 1.4+really1.3.42-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: graphicsmagick-imagemagick-compat from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | image processing tools providing ImageMagick interface | http://www.graphicsmagick.org/
- Ubuntu apt - graphicsmagick-libmagick-dev-compat - 1.4+really1.3.42-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: graphicsmagick-libmagick-dev-compat from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | image processing libraries providing ImageMagick interface | http://www.graphicsmagick.org/
- Ubuntu apt - libgraphics-magick-perl - 1.4+really1.3.42-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgraphics-magick-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | format-independent image processing - perl interface | http://www.graphicsmagick.org/
- Ubuntu apt - libgraphicsmagick++-q16-12t64 - 1.4+really1.3.42-1.1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgraphicsmagick++-q16-12t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | format-independent image processing - C++ shared library | http://www.graphicsmagick.org/


## Combined YAML source

View the package source record on GitHub. [combined/graphicsmagick.yml](https://github.com/mxcl/pkgdb/blob/main/combined/graphicsmagick.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
