# Install sng with Homebrew, apt, dnf, Nix

Enable lossless editing of PNGs via a textual representation. Version 1.1.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:sng
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sng
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install sng
```

  Evidence: Debian stable package indexes: sng from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install sng
```

  Evidence: Fedora Rawhide package metadata: sng from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#sng
```

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

## Package facts

- **Package key:** brew:sng
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sng>
- **Version:** 1.1.1
- **Source summary:** Enable lossless editing of PNGs via a textual representation
- **Homepage:** <https://sng.sourceforge.net/>
- **Repository:** <https://sourceforge.net/p/sng/code>
- **Upstream docs:** <https://sng.sourceforge.net/>
- **License:** Zlib
- **Source archive:** <https://downloads.sourceforge.net/project/sng/sng-1.1.1.tar.xz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- sng (cli)
- sng (alias)

## Dependencies

- libpng
- xorgrgb

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.1.1
- Local data: ok
- Upstream repository: https://sng.sourceforge.net/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

SNG, Scriptable Network Graphics, is a textual representation for PNG files plus a compiler/decompiler named sng. It enables lossless editing of PNG structure and ancillary chunks using text tools.

### Project history

The official NEWS file records a private pre-alpha release in December 1999, a public alpha days later, and a 1.0.0 production release in July 2001. The project is maintained by Eric S. Raymond and hosted on SourceForge with an official Git code browser.

### Adoption history

SNG has stayed small but packageable: the official README says the code is commonly packaged as sng, and the supplied package facts list Homebrew, Debian/Ubuntu, Fedora, and Nix packages.

### How it is used

The sng program translates PNG to SNG and SNG back to PNG. Official documentation emphasizes viewing and editing obscure ancillary chunks and generating PNG content from scripts.

### Why package nerds care

SNG is classic Unix packaging material: a small C command-line tool, a man page, a regression test, libpng dependency, and a stable file-format niche that has survived many libpng transitions.

### Timeline

- 1999: Pre-alpha private release and public alpha release.
- 2001: 1.0.0 production release.
- 2015: 1.1.0 release updates libpng compatibility and fixes Mac OS X color database lookup.
- 2024: 1.1.1 improves documentation and drops autoconfig.
- 2026: 1.1.2 release listed on the official resource page.

### Related projects

- The official homepage relates SNG to PNG, libpng, the PNG test suite, and gif2png.

### Sources

- <https://sng.sourceforge.net/>
- <https://sng.sourceforge.net/NEWS.adoc>
- <https://sng.sourceforge.net/README.adoc>
- <https://sourceforge.net/p/sng/code/>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - sng - 1.1.1-1: normalized package name match | Debian stable package indexes: sng from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | specialized markup language for representing PNG contents | http://sng.sourceforge.net/
- Nix - sng: normalized package name match | nixpkgs package indexes: pkgs/by-name/sn/sng/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - sng - 1.1.0-4build2: normalized package name match | Ubuntu 24.04 LTS package indexes: sng from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | specialized markup language for representing PNG contents | http://sng.sourceforge.net/
- dnf - sng - 1.1.1-8.fc44: normalized package name match | Fedora Rawhide package metadata: sng from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Lossless editing of PNGs via a textual representation | https://sng.sourceforge.net/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [xorgrgb](https://www.automicvault.com/pkg/brew/xorgrgb/) - Runtime dependency declared by Homebrew.
- [gd](https://www.automicvault.com/pkg/brew/gd/) - Shares av.db curated category or tags: cli, image-processing, media, png.
- [babl](https://www.automicvault.com/pkg/brew/babl/) - Shares av.db curated category or tags: cli, image-processing, media.
- [caire](https://www.automicvault.com/pkg/brew/caire/) - Shares av.db curated category or tags: cli, image-processing, media.
- [camellia](https://www.automicvault.com/pkg/brew/camellia/) - Shares av.db curated category or tags: cli, image-processing, media.
- [epsilon](https://www.automicvault.com/pkg/brew/epsilon/) - Shares av.db curated category or tags: cli, image-processing, media.
- [exact-image](https://www.automicvault.com/pkg/brew/exact-image/) - Shares av.db curated category or tags: cli, image-processing, media.
- [exiftran](https://www.automicvault.com/pkg/brew/exiftran/) - Shares av.db curated category or tags: cli, image-processing, media.
- [faceprints](https://www.automicvault.com/pkg/brew/faceprints/) - Shares av.db curated category or tags: cli, image-processing, media.
- [libicns](https://www.automicvault.com/pkg/brew/libicns/) - Both packages work with overlapping file formats or content types. Shared terms: cli, conversion, format, image, image-processing.

## Combined YAML source

View the package source record on GitHub. [combined/sng.yml](https://github.com/automic-vault/db/blob/main/combined/sng.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
