Automic VaultAutomic Vault

brew

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

Additional install commands

macOS

Homebrewverified · 100%
brew install gd

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add gd

Alpine Linux edge package indexes · gd · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install gd

Fedora Rawhide package metadata · gd · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#gd

nixpkgs package indexes · pkgs/by-name/gd/gd/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S gd

Arch Linux sync databases · gd · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install gd

openSUSE Tumbleweed package metadata · gd · source: download.opensuse.org

overview

Package summary

Graphics library to dynamically manipulate images

Commands and aliases

  • annotate
  • bdftogd
  • gd2copypal
  • gd2togif
  • gd2topng
  • gdcmpgif
  • gdparttopng
  • gdtopng
  • giftogd2
  • pngtogd
  • pngtogd2
  • webpng

history

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.

security posture

Risk level: blue

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

Risk classifier

blue risk · medium confidence · tool

Why

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

Signals

  • text:image

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 12 platform targets.
  • Installs with 7 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
annotatecliglobal executable
bdftogdcliglobal executable
gd2copypalcliglobal executable
gd2togifcliglobal executable
gd2topngcliglobal executable
gdcmpgifcliglobal executable
gdparttopngcliglobal executable
gdtopngcliglobal executable
giftogd2cliglobal executable
pngtogdcliglobal executable
pngtogd2cliglobal executable
webpngcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.3.3
manager updated2026-06-22
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/libgd/libgd

install metadata

Package metadata

Package keybrew:gd
Version2.3.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gd
Homepagehttps://libgd.github.io/
Repositoryhttps://github.com/libgd/libgd
Upstream docshttps://libgd.github.io/manuals/2.3.3
LicenseGD
Source archivehttps://github.com/libgd/libgd/releases/download/gd-2.3.3/libgd-2.3.3.tar.xz
Last updated2026-06-22T14:03:26-07:00
Pulseupdated
Dependenciesfontconfig, freetype, jpeg-turbo, libavif, libpng, libtiff, webp
Bottleavailable (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegd
Aliases
  • libgd
Version Scheme0
Revision6
Head VersionHEAD
Conflicts With
  • mummer
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

gd

nix profile install nixpkgs#gd
  • normalized package name match
  • Matched by: Gd
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gd/gd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

gd 2.3.3-r10

Library for the dynamic creation of images by programmers

https://libgd.github.io/

sudo apk add gd
  • License: GD
  • Architecture: x86_64
  • Source Package: gd
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

gd-dev 2.3.3-r10

Library for the dynamic creation of images by programmers (development files)

https://libgd.github.io/

sudo apk add gd-dev
  • License: GD
  • Architecture: x86_64
  • Source Package: gd
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gd-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

gd-doc 2.3.3-r10

Library for the dynamic creation of images by programmers (documentation)

https://libgd.github.io/

sudo apk add gd-doc
  • License: GD
  • Architecture: x86_64
  • Source Package: gd
  • normalized package name match
  • Matched by: Gd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libgd 2.3.3-r10

Library for the dynamic creation of images by programmers (libraries)

https://libgd.github.io/

sudo apk add libgd
  • License: GD
  • Architecture: x86_64
  • Source Package: gd
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libgd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

gd 2.3.3-21.fc44

A graphics library for quick creation of PNG or JPEG images

http://libgd.github.io/

sudo dnf install gd
  • License: GD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gd
  • 15 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gd
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gd-devel 2.3.3-21.fc44

The development libraries and header files for gd

http://libgd.github.io/

sudo dnf install gd-devel
  • License: GD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gd
  • 15 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gd
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf95%

gd-progs 2.3.3-21.fc44

Utility programs that use libgd

http://libgd.github.io/

sudo dnf install gd-progs
  • License: GD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 6 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gd
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
pacman95%

gd 2.3.3-9

Library for the dynamic creation of images by programmers

https://libgd.github.io/

sudo pacman -S gd
  • License: custom
  • Architecture: x86_64
  • 5 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Gd
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gd 2.3.3-4.7

A Drawing Library for Programs That Use PNG and JPEG Output

https://libgd.github.io/

sudo zypper install gd
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gd-devel 2.3.3-4.7

Drawing Library for Programs with PNG and JPEG Output

https://libgd.github.io/

sudo zypper install gd-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 4 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gd-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gd-devel-32bit 2.3.3-4.7

Drawing Library for Programs with PNG and JPEG Output

https://libgd.github.io/

sudo zypper install gd-devel-32bit
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gd-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libgd3 2.3.3-4.7

A Drawing Library for Programs That Use PNG and JPEG Output

https://libgd.github.io/

sudo zypper install libgd3
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 12 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libgd3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libgd3-32bit 2.3.3-4.7

A Drawing Library for Programs That Use PNG and JPEG Output

https://libgd.github.io/

sudo zypper install libgd3-32bit
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 12 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libgd3-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Combined YAML source

View the package source record on GitHub.

combined/gd.yml

Used sources

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