Dealing with changes to the GD extension
The GD 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 PHP GD
extension offers support for the Joint Photographic Experts Group (JPEG or JPG), Portable Network Graphic (PNG), GIF, X BitMap (XBM), X PixMap (XPM), Wireless Bitmap (WBMP), WebP, and Bitmap (BMP) formats.
Tip
For more information on the GD library, see https://libgd.github.io/.
Let's now have a look at the impact of resource-to-object migration on the GD
extension.
GD extension resource-to-object migration
As with other PHP extensions that previously used resources, the GD
extension has also primarily...