# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 7.1.2-29
- **来源摘要:** Tools and libraries to manipulate images in select formats
- **主页:** <https://imagemagick.org>
- **仓库:** <https://github.com/ImageMagick/ImageMagick>
- **最后更新:** 2026-07-28T04:25:17Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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>
## 其他软件包管理器记录

- 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/


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
