# 使用 Homebrew 安装 imageoptim-cli

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

## 安装

```sh
sudo av install brew:imageoptim-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install imageoptim-cli
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:imageoptim-cli
- **软件包管理器:** Homebrew
- **版本:** 4.0.0
- **来源摘要:** CLI for ImageOptim, ImageAlpha and JPEGmini
- **主页:** <https://jamiemason.github.io/ImageOptim-CLI/>
- **仓库:** <https://github.com/JamieMason/ImageOptim-CLI>
- **最后更新:** 2026-08-02T13:14:48Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- imageoptim (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

ImageOptim-CLI is a macOS-focused command-line wrapper around ImageOptim, ImageAlpha, and JPEGmini. It exists to make GUI-first image optimizers usable from shell scripts, build steps, and package-managed developer environments.

### 项目历史

Jamie Mason published ImageOptim-CLI to npm in 2013, with the project changelog showing the 1.0.0 line on 2013-05-17. The README frames the package as automation for ImageOptim, ImageAlpha, and JPEGmini, and explains that the CLI depends on those applications rather than bundling them.

The project evolved from a JavaScript-era package into a TypeScript and AppleScript tool distributed as a self-contained executable. Version 2.0.0 in 2018 rewrote the core in Node.js, and the 3.x line tightened macOS app detection, temporary directory handling, Node runtime support, and JPEGmini compatibility.

### 采用历史

ImageOptim-CLI spread through npm and Homebrew because it filled a practical gap for front-end build pipelines on Macs: ImageOptim and related apps had strong compression results but were awkward to use unattended. The README also points to a companion Grunt plugin, an Alfred workflow, and a tool-comparison page that positioned the CLI in the web-performance tooling ecosystem.

Homebrew packages the tool as `imageoptim-cli`, while npm remains an upstream distribution channel. Homebrew analytics show a small but persistent install base, which fits its niche as a Mac-only automation bridge rather than a general cross-platform optimizer.

### 使用方式

The `imageoptim` executable accepts file patterns and flags for enabling ImageAlpha or JPEGmini, disabling ImageOptim, controlling stats output, and selecting compression settings such as ImageAlpha color count and quality range. Its typical use is batch optimization from a terminal or build script.

Because JPEGmini automation simulates a GUI user, the README documents macOS accessibility permissions for that path. The package therefore sits in the unusual intersection of CLI automation, AppleScript, and GUI image applications.

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

For package-manager users, ImageOptim-CLI is notable because it packages a workflow rather than a codec: the value is coordinating several native Mac apps behind one repeatable command. It is also a good example of Homebrew carrying a Node-derived binary for a workflow that only makes sense on macOS.

### 时间线

- 2013: ImageOptim-CLI 1.0.0 published to npm.
- 2013: The project was covered as a batch compression tool for optimized web images.
- 2018: Version 2.0.0 rewrote the core in Node.js.
- 2019: Version 3.0.0 changed missing-app cases from warnings to errors.
- 2023: Version 3.1.9 added Node 18 support and dependency updates.

### Related projects

- ImageOptim-CLI automates ImageOptim, ImageAlpha, and JPEGmini, and its README names `grunt-imageoptim` and an Alfred workflow as related projects. It also compares itself with optimizer services and tools such as Kraken.io, CodeKit, grunt-contrib-imagemin, Smush.it, and TinyPNG.

### 来源

- <https://formulae.brew.sh/api/formula/imageoptim-cli.json>
- <https://github.com/JamieMason/ImageOptim-CLI>
- <https://raw.githubusercontent.com/JamieMason/ImageOptim-CLI/main/CHANGELOG.md>
- <https://raw.githubusercontent.com/JamieMason/ImageOptim-CLI/main/README.md>
- <https://registry.npmjs.org/imageoptim-cli>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
