# Install gd with Homebrew, apk, dnf, Nix, pacman, zypper

Graphics library to dynamically manipulate images. Version 2.3.3 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:gd
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gd
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gd
```

  Evidence: Alpine Linux edge package indexes: gd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install gd
```

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

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

- pacman (92%):

```sh
sudo pacman -S gd
```

  Evidence: Arch Linux sync databases: gd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gd
```

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

## Package facts

- **Package key:** brew:gd
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gd>
- **Version:** 2.3.3
- **Source summary:** Graphics library to dynamically manipulate images
- **Homepage:** <https://libgd.github.io/>
- **Repository:** <https://github.com/libgd/libgd>
- **Upstream docs:** <https://libgd.github.io/manuals/2.3.3>
- **License:** GD
- **Source archive:** <https://github.com/libgd/libgd/releases/download/gd-2.3.3/libgd-2.3.3.tar.xz>
- **Last updated:** 2026-06-22T14:03:26-07:00
- **Generated:** 2026-07-07T07:26:23+00:00

## Executables

- annotate (cli)
- bdftogd (cli)
- gd2copypal (cli)
- gd2togif (cli)
- gd2topng (cli)
- gdcmpgif (cli)
- gdparttopng (cli)
- gdtopng (cli)
- giftogd2 (cli)
- pngtogd (cli)
- pngtogd2 (cli)
- webpng (cli)
- annotate (alias)
- bdftogd (alias)
- gd2copypal (alias)
- gd2togif (alias)
- gd2topng (alias)
- gdcmpgif (alias)
- gdparttopng (alias)
- gdtopng (alias)
- giftogd2 (alias)
- pngtogd (alias)
- pngtogd2 (alias)
- webpng (alias)

## Dependencies

- fontconfig
- freetype
- jpeg-turbo
- libavif
- libpng
- libtiff
- webp

## Install behavior

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

## Freshness

- Page generated: 2026-07-07
- Package-manager version: 2.3.3
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/libgd/libgd
- info: No cached GitHub release or tag data was available.
## Project history and usage

GD Graphics Library, packaged as gd or libgd, is a C library for dynamic image creation. It is commonly used to generate charts, graphics, thumbnails, and image conversions, especially in web applications.

### Project history

The official README and About page state that GD was originally developed by Thomas Boutell and is now maintained by many contributors, with the About page placing maintenance under the PHP.net umbrella. The modern repository describes C99/C++-compatible builds through CMake or configure and broad platform support.

### Adoption history

GD spread through language bindings and web stacks: the official pages name Perl, PHP, Ruby, and other wrappers, and describe web development as its most common application area. Its package-manager life is tied to optional image-format libraries such as libpng, libjpeg, libwebp, libavif, libheif, libtiff, libXpm, FreeType, Fontconfig, libraqm, and libimagequant.

### How it is used

Applications link libgd to create or transform raster images on demand. Typical uses include chart generation, thumbnailing, format conversion, transparency and blending operations, image transformations, filters, and text rendering when optional font libraries are enabled.

### Why package nerds care

GD is a classic dependency package: small at the API surface, but connected to a wide graph of image codecs, language bindings, build systems, and security updates. Its history explains why many Unix package sets carry both libgd itself and a cluster of optional image/font libraries.

### Timeline

- 2015: GitHub records the libgd repository creation.
- 2017: GD 2.2.5 is released with security fixes.
- 2020: GD 2.3.0 is released with multiple security fixes and test additions.
- 2021: GD 2.3.2 adds AVIF and HEIF support, followed by GD 2.3.3 build and bug fixes.
- 2026: The README lists GD 2.3 in bug-fix support, GD 2.4 as active development, and GD 3.0 as early vector/API work.

### Related projects

- PHP.net is the umbrella named by the official About page.
- Perl, PHP, Ruby, and other bindings expose GD to language ecosystems.
- libpng, libjpeg or libjpeg-turbo, libwebp, libavif, libheif, libtiff, libXpm, FreeType, Fontconfig, libraqm, and libimagequant are adjacent optional dependencies.

### Sources

- <https://api.github.com/repos/libgd/libgd>
- <https://api.github.com/repos/libgd/libgd/releases>
- <https://github.com/libgd/libgd>
- <https://libgd.github.io/>
- <https://libgd.github.io/pages/about.html>
- <https://libgd.github.io/pages/docs.html>
- <https://raw.githubusercontent.com/libgd/libgd/master/CHANGELOG.md>
- <https://raw.githubusercontent.com/libgd/libgd/master/README.md>


## Security Notes

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

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gd
- **Aliases:** libgd
- **Version Scheme:** 0
- **Revision:** 6
- **Head Version:** HEAD
- **Conflicts With:** mummer
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - gd: normalized package name match | nixpkgs package indexes: pkgs/by-name/gd/gd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - gd - 2.3.3-r10: normalized package name match | Alpine Linux edge package indexes: gd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for the dynamic creation of images by programmers | https://libgd.github.io/
- apk - gd-dev - 2.3.3-r10: normalized package name match | Alpine Linux edge package indexes: gd-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for the dynamic creation of images by programmers (development files) | https://libgd.github.io/
- apk - gd-doc - 2.3.3-r10: normalized package name match | Alpine Linux edge package indexes: gd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for the dynamic creation of images by programmers (documentation) | https://libgd.github.io/
- apk - libgd - 2.3.3-r10: normalized package name match | Alpine Linux edge package indexes: libgd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Library for the dynamic creation of images by programmers (libraries) | https://libgd.github.io/
- dnf - gd - 2.3.3-21.fc44: normalized package name match | Fedora Rawhide package metadata: gd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A graphics library for quick creation of PNG or JPEG images | http://libgd.github.io/
- dnf - gd-devel - 2.3.3-21.fc44: normalized package name match | Fedora Rawhide package metadata: gd-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The development libraries and header files for gd | http://libgd.github.io/
- dnf - gd-progs - 2.3.3-21.fc44: normalized package name match | Fedora Rawhide package metadata: gd-progs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Utility programs that use libgd | http://libgd.github.io/
- pacman - gd - 2.3.3-9: normalized package name match | Arch Linux sync databases: gd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Library for the dynamic creation of images by programmers | https://libgd.github.io/
- zypper - gd - 2.3.3-4.7: normalized package name match | openSUSE Tumbleweed package metadata: gd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Drawing Library for Programs That Use PNG and JPEG Output | https://libgd.github.io/
- zypper - gd-devel - 2.3.3-4.7: normalized package name match | openSUSE Tumbleweed package metadata: gd-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Drawing Library for Programs with PNG and JPEG Output | https://libgd.github.io/
- zypper - gd-devel-32bit - 2.3.3-4.7: normalized package name match | openSUSE Tumbleweed package metadata: gd-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Drawing Library for Programs with PNG and JPEG Output | https://libgd.github.io/
- zypper - libgd3 - 2.3.3-4.7: normalized package name match | openSUSE Tumbleweed package metadata: libgd3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Drawing Library for Programs That Use PNG and JPEG Output | https://libgd.github.io/
- zypper - libgd3-32bit - 2.3.3-4.7: normalized package name match | openSUSE Tumbleweed package metadata: libgd3-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Drawing Library for Programs That Use PNG and JPEG Output | https://libgd.github.io/


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [fontconfig](https://www.automicvault.com/pkg/brew/fontconfig/) - Runtime dependency declared by Homebrew.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libavif](https://www.automicvault.com/pkg/brew/libavif/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [libtiff](https://www.automicvault.com/pkg/brew/libtiff/) - Runtime dependency declared by Homebrew.
- [webp](https://www.automicvault.com/pkg/brew/webp/) - Runtime dependency declared by Homebrew.
- [analog](https://www.automicvault.com/pkg/brew/analog/) - Popular package that depends on this formula.
- [apcupsd](https://www.automicvault.com/pkg/brew/apcupsd/) - Popular package that depends on this formula.
- [audiowaveform](https://www.automicvault.com/pkg/brew/audiowaveform/) - Popular package that depends on this formula.
- [ejabberd](https://www.automicvault.com/pkg/brew/ejabberd/) - Popular package that depends on this formula.
- [gnuplot](https://www.automicvault.com/pkg/brew/gnuplot/) - Popular package that depends on this formula.
- [graphviz](https://www.automicvault.com/pkg/brew/graphviz/) - Popular package that depends on this formula.
- [libgphoto2](https://www.automicvault.com/pkg/brew/libgphoto2/) - Popular package that depends on this formula.
- [libsail](https://www.automicvault.com/pkg/brew/libsail/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [graphicsmagick](https://www.automicvault.com/pkg/brew/graphicsmagick/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [babl](https://www.automicvault.com/pkg/brew/babl/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [exact-image](https://www.automicvault.com/pkg/brew/exact-image/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [gegl](https://www.automicvault.com/pkg/brew/gegl/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [imagemagick](https://www.automicvault.com/pkg/brew/imagemagick/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [jasper](https://www.automicvault.com/pkg/brew/jasper/) - Shares av.db curated category or tags: c, cli, image-processing, library, media.
- [triangle](https://www.automicvault.com/pkg/brew/triangle/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.

## Combined YAML source

View the package source record on GitHub. [combined/gd.yml](https://github.com/automic-vault/db/blob/main/combined/gd.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
