Created
November 17, 2022 14:21
-
-
Save chrdesigner/90d317783011c8efc55c1090402ebe2d to your computer and use it in GitHub Desktop.
Use GD instead of Imagick.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** * Use GD instead of Imagick. | |
*/ | |
function chr_use_gd_editor($array) { | |
return array( 'WP_Image_Editor_GD' ); | |
} | |
add_filter( 'wp_image_editors', 'chr_use_gd_editor' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment