Last active
December 24, 2021 14:49
-
-
Save markhowellsmead/4dc7727e823fe83aa492 to your computer and use it in GitHub Desktop.
Plugin to force WordPress to use ImageMagick instead of GDlib when resizing images
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 | |
/** | |
* Plugin Name: Force Imagick | |
* Description: Stops GD image library from being used by default. Allows EXIF data to be retained, amongst other things. | |
* Author: https://wordpress.org/support/profile/bcworkz | |
* License: GPL2 | |
*/ | |
add_filter('wp_image_editors', 'fi_force_imagick'); | |
function fi_force_imagick() { | |
return array('WP_Image_Editor_Imagick'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment