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

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

## 安装

```sh
sudo av install brew:imagemagick
```

## 代理安全回答

imagemagick processes image files and can read or overwrite local artifacts.

- **凭据访问:** Can read images, metadata, and paths selected by command arguments.
- **远程变更:** Primarily local, with possible delegated tools depending on formats.
- **发布/制品风险:** Can create or overwrite generated visual artifacts.
- **推荐控制:** Gate broad input globs, overwrites, and processing of sensitive directories.
- **代理使用指南:** Allow safe local conversions; require approval for recursive operations or sensitive input paths.

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install imagemagick
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ImageMagick
```

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

### Linux

- apk (92%):

```sh
sudo apk add imagemagick
```

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

- Debian apt (92%):

```sh
sudo apt install imagemagick
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#imagemagick
```

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

- pacman (92%):

```sh
sudo pacman -S imagemagick
```

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

- dnf (92%):

```sh
sudo dnf install ImageMagick
```

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

- zypper (92%):

```sh
sudo zypper install ImageMagick
```

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

### Windows

- Chocolatey (92%):

```sh
choco install imagemagick
```

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

- Scoop (92%):

```sh
scoop install main/imagemagick
```

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

- winget (92%):

```sh
winget install --id JiriPolasek.DevNumbersforCommandPalette -e
```

  证据: Windows Package Manager source index: JiriPolasek.DevNumbersforCommandPalette from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:imagemagick
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/imagemagick>
- **版本:** 7.1.2-29
- **来源摘要:** Tools and libraries to manipulate images in select formats
- **主页:** <https://imagemagick.org>
- **仓库:** <https://github.com/ImageMagick/ImageMagick>
- **上游文档:** <https://imagemagick.org>
- **许可证:** ImageMagick
- **源码归档:** <https://github.com/ImageMagick/ImageMagick/releases/download/7.1.2-29/ImageMagick-7.1.2-29.7z>
- **最后更新:** 2026-07-28T04:25:17Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- Magick++-config (cli)
- MagickCore-config (cli)
- MagickWand-config (cli)
- animate (cli)
- compare (cli)
- composite (cli)
- conjure (cli)
- convert (cli)
- display (cli)
- identify (cli)
- import (cli)
- magick (cli)
- magick-script (cli)
- mogrify (cli)
- montage (cli)
- stream (cli)
- Magick++-config (别名)
- MagickCore-config (别名)
- MagickWand-config (别名)
- animate (别名)
- compare (别名)
- composite (别名)
- conjure (别名)
- convert (别名)
- display (别名)
- identify (别名)
- import (别名)
- magick (别名)
- magick-script (别名)
- mogrify (别名)
- montage (别名)
- stream (别名)

## 依赖

- freetype
- jpeg-turbo
- libheif
- libpng
- libtiff
- libtool
- little-cms2
- webp
- xz

## 构建依赖

- pkgconf

## macOS 提供的库

- bzip2
- libxml2

## 安装行为

- post-install 钩子: 未定义
- 注意事项: imagemagick-full includes additional tools and libraries that are not included in the regular imagemagick formula.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 7.1.2-29
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://github.com/ImageMagick/ImageMagick
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

ImageMagick is a long-lived open-source suite for creating, editing, composing, converting, and inspecting raster images from command-line tools and libraries. The Homebrew imagemagick formula tracks the ImageMagick 7 line and is the mainstream package-manager entry for the suite on Homebrew.

### 项目历史

ImageMagick began at DuPont when John Cristy needed to display 24-bit computer-generated images on monitors that could show only 256 colors. The official history describes Usenet as an early source of algorithms and technical help, and says DuPont transferred copyright so ImageMagick Studio LLC could release the software freely.

After the 1990 comp.archives posting, ImageMagick accumulated enhancements, bug reports, and source contributions. By the mid-1990s, version 4.2.9 had become the culmination of the early toolset and was appearing in the freely distributed Linux ecosystem.

Version 5 emphasized APIs and language/script integration after Bob Friesenhahn pushed for a stronger programming interface and wrote Magick++. Version 6 reorganized command-line handling after Anthony Thyssen highlighted confusion around processing multiple images. Version 7 then used lessons from version 6 to redesign pixel-channel handling around arbitrary colorspaces and floating-point channel values.

### 采用历史

ImageMagick's adoption came from automation: it lets shell scripts, web applications, build systems, scientific workflows, and media pipelines perform image operations without a GUI. The upstream README names web development, graphic design, video editing, scientific research, medical imaging, and astronomy as usage areas.

Package-manager adoption is broad. The input metadata lists Alpine, Homebrew, Chocolatey, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, winget, and openSUSE mappings, and Homebrew analytics show far larger usage for the main imagemagick formula than for the full or versioned variants.

### 使用方式

Typical command-line use includes converting formats, resizing, cropping, compositing, comparing images, identifying metadata, creating montages, importing windows, and streaming pixel data. The resources documentation also makes policy.xml and other configuration files central to production use, especially where untrusted images or resource limits matter.

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

ImageMagick is one of the canonical examples of a package that is both a CLI and a library dependency. Package maintainers care about delegate libraries, codec support, security policy defaults, ABI compatibility, and the version 6 to version 7 command transition because tiny build choices can alter what image formats users can process.

### 时间线

- 1987: John Cristy begins the work at DuPont after a request to display 24-bit images on 256-color monitors.
- 1990: ImageMagick is posted to Usenet's comp.archives group.
- Mid-1990s: ImageMagick 4.2.9 marks the early mature public toolset and appears in the Linux ecosystem.
- Version 5: Magick++, module loading, automatic file identification, and stronger APIs expand the project.
- Version 6: Command-line behavior is redesigned for multi-image processing.
- Version 7: Pixel-channel internals are redesigned for arbitrary colorspaces, arbitrary channels, and floating-point storage.

### Related projects

- Related projects include GraphicsMagick, which originated as an ImageMagick fork, the ImageMagick 6 legacy branch, Magick++, Magick.NET, Fred's ImageMagick Scripts, and Anthony Thyssen's ImageMagick Usage examples.

### 来源

- Official ImageMagick history page, ImageMagick README, command-line tools documentation, resources documentation, GitHub repository metadata, and Homebrew formula metadata.


## 安全说明

doc example: broad image transform tool.

- **Geiger 风险:** blue / 高
- doc example: broad image transform tool
- **审批门规则:** 5


## 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_CONFIGURE_PATH, $PREFIX/etc/ImageMagick-7, $PREFIX/share/ImageMagick-7, $XDG_CACHE_HOME/ImageMagick, ~/.config/ImageMagick, <client path>/etc/ImageMagick
- Windows: $MAGICK_CONFIGURE_PATH, <windows registry>, $PREFIX/config, $USERPROFILE/.config/ImageMagick, <client path>
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** imagemagick
- **Aliases:** imagemagick@7
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Debian apt - imagemagick - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: imagemagick from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | image manipulation programs -- binaries | https://www.imagemagick.org/
- Debian apt - imagemagick-7-common - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: imagemagick-7-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | image manipulation programs -- infrastructure | https://www.imagemagick.org/
- Debian apt - imagemagick-7-doc - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: imagemagick-7-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | document files of ImageMagick | https://www.imagemagick.org/
- Debian apt - imagemagick-7.q16 - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: imagemagick-7.q16 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | image manipulation programs -- quantum depth Q16 | https://www.imagemagick.org/
- Debian apt - imagemagick-7.q16hdri - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: imagemagick-7.q16hdri from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | image manipulation programs -- quantum depth Q16HDRI | https://www.imagemagick.org/
- Debian apt - libimage-magick-perl - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libimage-magick-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl interface to the ImageMagick graphics routines | https://www.imagemagick.org/
- Debian apt - libimage-magick-q16-perl - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libimage-magick-q16-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl interface to the ImageMagick graphics routines -- Q16 version | https://www.imagemagick.org/
- Debian apt - libimage-magick-q16hdri-perl - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libimage-magick-q16hdri-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl interface to the ImageMagick graphics routines -- Q16HDRI version | https://www.imagemagick.org/
- Debian apt - libmagick++-7-headers - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libmagick++-7-headers from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | object-oriented C++ interface to ImageMagick - header files | https://www.imagemagick.org/
- Debian apt - libmagick++-7.q16-5 - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libmagick++-7.q16-5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ interface to ImageMagick -- quantum depth Q16 | https://www.imagemagick.org/
- Debian apt - libmagick++-7.q16-dev - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libmagick++-7.q16-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ interface to ImageMagick - development files (Q16) | https://www.imagemagick.org/
- Debian apt - libmagick++-7.q16hdri-5 - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libmagick++-7.q16hdri-5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ interface to ImageMagick -- quantum depth Q16HDRI | https://www.imagemagick.org/
- Debian apt - libmagick++-7.q16hdri-dev - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libmagick++-7.q16hdri-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ interface to ImageMagick - development files (Q16HDRI) | https://www.imagemagick.org/
- Debian apt - libmagick++-dev - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libmagick++-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | object-oriented C++ interface to ImageMagick -- dummy package | https://www.imagemagick.org/
- Debian apt - libmagickcore-7-arch-config - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libmagickcore-7-arch-config from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | low-level image manipulation library - architecture header files | https://www.imagemagick.org/
- Debian apt - libmagickcore-7-headers - 8:7.1.1.43+dfsg1-1+deb13u10: normalized package name match | Debian stable package indexes: libmagickcore-7-headers from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | low-level image manipulation library - header files | https://www.imagemagick.org/


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libtiff](https://pkg.so/zh-hans/brew/libtiff/) - Runtime dependency declared by Homebrew.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Runtime dependency declared by Homebrew.
- [little-cms2](https://pkg.so/zh-hans/brew/little-cms2/) - Runtime dependency declared by Homebrew.
- [webp](https://pkg.so/zh-hans/brew/webp/) - Runtime dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [vips](https://pkg.so/zh-hans/brew/vips/) - Popular package that depends on this formula.
- [zbar](https://pkg.so/zh-hans/brew/zbar/) - Popular package that depends on this formula.
- [pstoedit](https://pkg.so/zh-hans/brew/pstoedit/) - Popular package that depends on this formula.
- [geeqie](https://pkg.so/zh-hans/brew/geeqie/) - Popular package that depends on this formula.
- [autotrace](https://pkg.so/zh-hans/brew/autotrace/) - Popular package that depends on this formula.
- [folderify](https://pkg.so/zh-hans/brew/folderify/) - Popular package that depends on this formula.
- [synfig](https://pkg.so/zh-hans/brew/synfig/) - Popular package that depends on this formula.
- [lanraragi](https://pkg.so/zh-hans/brew/lanraragi/) - Popular package that depends on this formula.
- [imagemagick@6](https://pkg.so/zh-hans/brew/imagemagick-6/) - Package name indicates the same formula family.
- [imagemagick-full](https://pkg.so/zh-hans/brew/imagemagick-full/) - Shares the same upstream source repository.
- [netpbm](https://pkg.so/zh-hans/brew/netpbm/) - Shares pkgdb curated category or tags: cli, graphics, image-conversion, image-processing, media.
- [gd](https://pkg.so/zh-hans/brew/gd/) - Shares pkgdb curated category or tags: cli, graphics, image-processing, library, media.
- [graphicsmagick](https://pkg.so/zh-hans/brew/graphicsmagick/) - Shares pkgdb curated category or tags: cli, graphics, image-conversion, image-processing, media.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- approval-gate seed metadata
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
