Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PHP Image Libraries

Konstantinos Pappas edited this page Nov 22, 2025 · 1 revision

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

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

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.

Useful links

Clone this wiki locally

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /