-
Notifications
You must be signed in to change notification settings - Fork 1
PHP Image Libraries
GD and Imagick are two popular PHP libraries used for image processing and manipulation. Both libraries offer a range of functionalities. Quality, performance, as well as availability on the server depending on the hosting environment may vary between the two.
Image optimization
Note
The Pressidium Performance plugin will automatically use either GD or Imagick based on the server configuration. You can also prioritize one over the other in the plugin settings.
The plugin does not directly interact with these libraries, but rather relies on the built-in WordPress abstractions: WP_Image_Editor_GD and WP_Image_Editor_Imagick.
PHP-GD is a PHP extension that uses the GD library for image processing. The extension provides a wide range of functions for creating, manipulating, and saving images in various formats. It is included in most PHP distributions by default, and is widely supported and available on most hosting environments.
To use PHP-GD you either need to install libgd or use the bundled GD library that ships with PHP.
For more information on how to install and configure PHP-GD, refer to the official documentation.
PHP-Imagick is a PHP extension that uses the ImageMagick library for image processing. The extension provides a wide range of functions for creating, manipulating, and saving images in various formats. It is not bundled with PHP and may not be available on all hosting environments, so it may require additional installation and configuration on the server.
To use PHP-Imagick you need to have ImageMagick installed on your server along with the PHP extension.
For more information on how to install and configure PHP-Imagick, refer to the official documentation and the PECL page.