# 使用 Homebrew, scoop, dnf, Nix 安装 nip4

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

## 安装

```sh
sudo av install brew:nip4
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nip4
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install snip
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#snip
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/nip4
```

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

## 软件包事实

- **软件包键:** brew:nip4
- **软件包管理器:** Homebrew
- **版本:** 9.1.5
- **来源摘要:** Image processing spreadsheet
- **主页:** <https://github.com/libvips/nip4>
- **仓库:** <https://github.com/libvips/nip4>
- **最后更新:** 2026-07-07T14:59:01Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nip4 (别名)
- snip (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

nip4 is the modern libvips graphical image-processing spreadsheet: users build formula-driven image-processing workspaces, watch recalculation live, and can batch-run those workspaces without the GUI through `snip`. It is niche, but serious niche: the official docs describe workflows with more than 10,000 cells and hundreds of gigabytes of imagery.

### 项目历史

nip4 is explicitly a reworking of nip2 for GTK4 and the vips8 image-processing API. The libvips post for nip2 users says nip2 was mostly finished around 2000, had its last major feature around 2005, and became difficult to maintain because libvips-7, GTK2, and goffice-0.8 aged out. nip4's stated goals include loading and processing all nip2 workspaces, using GTK4, switching to libvips-8, simplifying the interface, and improving distribution across Linux, macOS, and Windows.

The libvips progress post on October 19, 2024 described work to complete nip4, remove old vips7 code, and make it run the old nip2 test suite. A March 12, 2025 post announced a test release working on Linux, Windows, and macOS, and a March 20, 2025 introduction presented nip4 as mostly done. A June 3, 2026 post described a newer batch mode built around `snip`, the command-line interpreter for the nip4 language.

### 采用历史

nip4 adoption follows libvips rather than a mass desktop-app path. The libvips homepage calls nip4 the official libvips GUI and places it in an ecosystem where libvips itself powers image processing in projects such as sharp, Mastodon, imgproxy, MediaWiki, and others. nip4 is for people who need interactive construction of large image-processing pipelines, not for casual photo editing.

On 2026-07-01, Homebrew listed nip4 9.1.5 with 965 installs over 365 days. That is small in absolute package-manager terms but credible for a GUI scientific/media tool with recent cross-platform packaging.

### 使用方式

The GUI workflow is spreadsheet-like: load images into cells, apply toolkit operations or edit formulas, reorder and duplicate columns, open live image windows, and exploit libvips demand-driven evaluation so enormous images can be inspected interactively. The introduction emphasizes that only pixels needed for the display are computed until a final save or batch run.

`snip` is the package-nerd hook. It can evaluate expressions, run scripts, load nip4 or nip2 workspaces, patch them, save results, and apply a workspace to many files from the shell. That makes nip4 more than a GUI package: it also exposes a scriptable batch engine for pipelines developed interactively.

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

nip4 is significant as a rare GUI-plus-CLI package where the GUI is a visual programming environment and the CLI executes the same model. It also marks a migration point for libvips: completing nip4 helps retire the old vips7-dependent nip2 path.

### 时间线

- {'date': '2000', 'event': 'libvips post says nip2 was mostly finished around this time.'}
- {'date': '2005', 'event': "libvips post says nip2's final major feature landed around this time."}
- {'date': '2024-10-19', 'event': 'libvips progress post described nip4 completion work and vips7 removal goals.'}
- {'date': '2025-03-12', 'event': 'nip4 test release announced for Linux, Windows, and macOS.'}
- {'date': '2026-06-03', 'event': 'libvips post described the newer `snip` batch mode.'}

### Related projects

- libvips
- nip2
- snip
- vipsdisp

### 来源

- <https://formulae.brew.sh/formula/nip4>
- <https://github.com/libvips/nip4>
- <https://www.libvips.org/>
- <https://www.libvips.org/2024/10/19/nip4-Progress.html>
- <https://www.libvips.org/2025/03/12/nip4-for-nip2-users.html>
- <https://www.libvips.org/2025/03/20/introduction-to-nip4.html>
- <https://www.libvips.org/2026/06/03/nip4-batch-mode.html>


## 安全说明

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


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

- Scoop - extras/nip4: normalized package name match | Scoop official bucket manifest trees: bucket/nip4.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- Nix - snip: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/sn/snip/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - snip - 0.11-32.fc45: installed executable or alias match | Fedora Rawhide package metadata: snip from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | An Ant task designed to help with the single-sourcing of program documentation | http://www.martiansoftware.com/lab/snip/
- dnf - snip-javadoc - 0.11-32.fc45: installed executable or alias match | Fedora Rawhide package metadata: snip-javadoc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Javadocs for snip | http://www.martiansoftware.com/lab/snip/


## Combined YAML source

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


## 来源

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