f2aa2836ed
Demand for AVIF support on the web is growing, as the word gets out about this new file format which allows higher-quality encoding at smaller sizes. Core contributors to major open-source CMSs are interested in auto-generating AVIF images! They've been simply waiting for support to appear in libgd. This PR aims to meet the growing demand, and to help bring smaller, more beautiful images to more of the web - to sites created by experienced developers and CMS users alike. This PR adds support by incorporating libavif in addition to the existing libheif support. It's generally felt that libavif has more complete support for the AVIF format. libavif is also used by the Chromium project and squoosh.app. In this PR, I've endeavored to incorporate the latest research into best practices for AVIF encoding - not just for default quantizer values, but also an algorithm for determining the number of horizontal tiles, vertical tiles, and threads. Fixes #557. |
||
---|---|---|
.github/workflows | ||
VMS | ||
cmake | ||
config | ||
docs | ||
examples | ||
m4 | ||
src | ||
test | ||
tests | ||
travis | ||
windows | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.md | ||
CMakeLists.txt | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
CONTRIBUTORS | ||
COPYING | ||
Makefile.am | ||
README.md | ||
appveyor.yml | ||
bootstrap.sh | ||
configure.ac |
README.md
GD Graphics (Draw) Library
GD is an open source code library for the dynamic creation of images by programmers.
GD is written in C, and "wrappers" are available for Perl, PHP and other languages. GD can read and write many different image formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly.
The most common applications of GD involve website development, although it can be used with any standalone application!
The library was originally developed by Thomas Boutell and is now maintained by many contributors (see the CONTRIBUTORS file) under the umbrella of PHP.net.
If you like to contribute, report bugs, see how to contribute document
For security related issues, please contact us at security@libgd.org
Downloads/etc...
Please visit our homepage for more details.
Supported Image Formats
GD has builtin support for:
It also has optional support for more formats via external libraries:
- AVIF via libavif
- HEIF via libheif
- This includes AVIF read support if your system's
libheif
has AV1 decoding.
- This includes AVIF read support if your system's
- JPEG via IJG/libjpeg or libjpeg-turbo
- Does not include JPEG 2000
- PNG via libpng
- TIFF via libtiff
- WebP via libwebp
- XPM via libXpm
Besides that, GD depends on some external libraries, which are all optional and disabled by default:
- FreeType for rendering fonts
- Fontconfig for configuring and customizing font access
- libraqm for complex text layout
- libimagequant for conversion of RGBA images to 8-bit indexed-color images
- NOTE libimagequant is dual-licensed: GPLv3 and commercial license