WordPress image upload http error and imagemagick
I have several add-on domains on my VPS account with WordPress installations and I can't upload image files to any of my WordPress media libraries without getting an http error. The only image I've been able to successfully upload was a .jpg that was 46kb in size. Anything larger and I get an http error. The problem seems to be with imagemagick. If I add the code below to the functions.php file of my WordPress installation, forcing the use of GD, image upload works fine.
add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
Is there any way to fix this without having to edit each WordPress installation independently?
add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
Is there any way to fix this without having to edit each WordPress installation independently?