...

/

Dealing with Changes to the GD Extension

Dealing with Changes to the GD Extension

Learn about the functions that produce objects instead of resources and other updates to GD extension in PHP 8.

The GD (Graphics Draw) extension is an image manipulation extension that leverages the GD library. GD originally stood for GIF Draw. Oddly, the GD library had to withdraw support for the Graphics Interchange Format (GIF) after Unisys revoked the open-source license for the compression technology used when generating GIFs. After 2004, however, the Unisys patent on this technology expired and GIF support was restored. As it stands today, the GD extension offers support for the Joint Photographic Experts Group (JPEG or JPG), Portable Network Graphic (PNG), GIF, X BitMap (XBM), X PixMap (XPM), ...