# Install batik with Homebrew, apt, dnf, MacPorts, Nix, zypper

Java-based toolkit for SVG images. Version 1.19 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:batik
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install batik
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install batik
```

  Evidence: MacPorts ports tree: java/batik/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install libbatik-java
```

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

- dnf (92%):

```sh
sudo dnf install batik
```

  Evidence: Fedora Rawhide package metadata: batik 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#batik
```

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

- zypper (92%):

```sh
sudo zypper install xmlgraphics-batik
```

  Evidence: openSUSE Tumbleweed package metadata: xmlgraphics-batik from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:batik
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/batik>
- **Version:** 1.19
- **Source summary:** Java-based toolkit for SVG images
- **Homepage:** <https://xmlgraphics.apache.org/batik/>
- **Repository:** <https://github.com/apache/xmlgraphics-batik>
- **Upstream docs:** <https://xmlgraphics.apache.org/batik>
- **License:** Apache-2.0
- **Source archive:** <https://www.apache.org/dyn/closer.lua?path=xmlgraphics/batik/binaries/batik-bin-1.19.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- batik-rasterizer (cli)
- batik-slideshow (cli)
- batik-squiggle (cli)
- batik-svgpp (cli)
- batik-ttf2svg (cli)
- batik-rasterizer (alias)
- batik-slideshow (alias)
- batik-squiggle (alias)
- batik-svgpp (alias)
- batik-ttf2svg (alias)

## Dependencies

- openjdk

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

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

Apache Batik is a long-running Java toolkit for rendering, generating, manipulating, viewing, and transcoding SVG. In package-manager terms it is both a library stack and a set of command-line tools such as the rasterizer, Squiggle SVG browser, SVG pretty-printer, and TTF-to-SVG converter.

### Project history

Batik emerged during the early SVG standardization era. A W3C www-svg mailing-list announcement from December 4, 2000 announced the beta release of Batik 1.0 as an Apache Batik team project and described it as a Java 2D based SVG toolkit.

The current Apache project page describes the same core ambition: provide reusable Java modules for SVG parsing, generation, DOM support, viewing, scripting, and transcoding, plus a full SVG browser implementation to validate interoperability.

Batik remains part of Apache XML Graphics. Its GitHub repository is an Apache mirror for the official project, while the canonical documentation and release news live under xmlgraphics.apache.org.

### Adoption history

Batik has persisted because SVG rendering and conversion are infrastructure needs. The Apache site explicitly points to real-life projects and products using Batik, and package metadata shows it shipped through Homebrew, Debian and Ubuntu as libbatik-java, Fedora, MacPorts, Nix, and openSUSE.

Recent Apache news shows active maintenance through version 1.19 on May 6, 2025, following 1.18 in 2024 and earlier bug-fix and security releases.

### How it is used

Developers use Batik from Java applications to parse, render, generate, manipulate, and transcode SVG, including server-side conversion to formats such as PNG, JPEG, TIFF, EPS, and PDF when paired with related Apache components.

CLI users encounter it through tools such as batik-rasterizer, batik-squiggle, batik-svgpp, batik-slideshow, and batik-ttf2svg.

### Why package nerds care

Batik is important package-manager archaeology: a pre-Rust, pre-Go, Java-era graphics toolkit that still matters because SVG conversion has long tails in build systems, documentation pipelines, desktop Java applications, and distribution repositories.

It is also a reminder that command-line packages can be wrappers around substantial library ecosystems. Installing batik pulls in decades of XML, SVG, Java2D, and Apache XML Graphics history, not just one executable.

### Timeline

- 2000: Batik 1.0 beta announced on the W3C www-svg mailing list.
- 2020: Apache Batik 1.13 released as a bug-fix release.
- 2022: Apache Batik 1.15 and 1.16 released with security fixes noted in project news.
- 2024: Apache Batik 1.18 released.
- 2025: Apache Batik 1.19 released as a bug-fix release.

### Related projects

- Apache XML Graphics is Batik's project family.
- Apache FOP is related through vector/PDF transcoding support noted by the Batik site.
- W3C SVG is the specification family Batik implements.

### Sources

- <https://github.com/apache/xmlgraphics-batik>
- <https://lists.w3.org/Archives/Public/www-svg/2000Dec/0000.html>
- <https://xmlgraphics.apache.org/batik/>
- source_facts.package-manager


## Security Notes

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

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal


## 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: ~/.batik/preferences.xml, ~/.batik/__svgbrowser.policy
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** batik
- **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 - libbatik-java - 1.18+dfsg-2: normalized package name match | Debian stable package indexes: libbatik-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | xml.apache.org SVG Library | https://xmlgraphics.apache.org/batik/
- Nix - batik: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/batik/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libbatik-java - 1.17+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libbatik-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | xml.apache.org SVG Library | https://xmlgraphics.apache.org/batik/
- dnf - batik - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Scalable Vector Graphics for Java | https://xmlgraphics.apache.org/batik/
- dnf - batik-css - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-css from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Batik CSS engine | https://xmlgraphics.apache.org/batik/
- dnf - batik-demo - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-demo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Samples for batik | https://xmlgraphics.apache.org/batik/
- dnf - batik-javadoc - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-javadoc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Javadoc for batik | https://xmlgraphics.apache.org/batik/
- dnf - batik-rasterizer - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-rasterizer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Batik SVG rasterizer | https://xmlgraphics.apache.org/batik/
- dnf - batik-slideshow - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-slideshow from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Batik SVG slideshow | https://xmlgraphics.apache.org/batik/
- dnf - batik-squiggle - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-squiggle from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Batik SVG browser | https://xmlgraphics.apache.org/batik/
- dnf - batik-svgpp - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-svgpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Batik SVG pretty printer | https://xmlgraphics.apache.org/batik/
- dnf - batik-ttf2svg - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-ttf2svg from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Batik SVG font converter | https://xmlgraphics.apache.org/batik/
- dnf - batik-util - 1.19-3.fc44: normalized package name match | Fedora Rawhide package metadata: batik-util from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Batik utility library | https://xmlgraphics.apache.org/batik/
- zypper - xmlgraphics-batik - 1.18-1.5: normalized package name match | openSUSE Tumbleweed package metadata: xmlgraphics-batik from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Scalable Vector Graphics for Java | https://xml.apache.org/batik/
- MacPorts - batik: normalized package name match | MacPorts ports tree: java/batik/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- zypper - xmlgraphics-batik-rasterizer - 1.18-1.5: installed executable or alias match | openSUSE Tumbleweed package metadata: xmlgraphics-batik-rasterizer from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Batik SVG rasterizer | https://xml.apache.org/batik/


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://www.automicvault.com/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [dicebear](https://www.automicvault.com/pkg/brew/dicebear/) - Shares av.db curated category or tags: cli, graphics, media, svg.
- [libemf2svg](https://www.automicvault.com/pkg/brew/libemf2svg/) - Shares av.db curated category or tags: cli, graphics, media, svg.
- [resvg](https://www.automicvault.com/pkg/brew/resvg/) - Shares av.db curated category or tags: cli, graphics, media, svg.
- [svg2pdf](https://www.automicvault.com/pkg/brew/svg2pdf/) - Shares av.db curated category or tags: cli, graphics, media, svg.
- [svgo](https://www.automicvault.com/pkg/brew/svgo/) - Shares av.db curated category or tags: cli, graphics, media, svg.
- [aalib](https://www.automicvault.com/pkg/brew/aalib/) - Shares av.db curated category or tags: cli, graphics, media.
- [efl](https://www.automicvault.com/pkg/brew/efl/) - Shares av.db curated category or tags: cli, graphics, media.
- [epstool](https://www.automicvault.com/pkg/brew/epstool/) - Shares av.db curated category or tags: cli, graphics, media.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
