Fixing media file upload issues (dimensions)

I saw an error that said “HTTP error” when trying to upload large dimension files, regardless of size. I fished around and found that if I add this to my theme’s functions.php file, it fixes the problem.

 

add_filter( ‘wp_image_editors’, ‘change_graphic_lib’ );

function change_graphic_lib($array) {

return array( ‘WP_Image_Editor_GD’, ‘WP_Image_Editor_Imagick’ );

}

 

I found the solution here in the comments.

Leave a Comment

Your email address will not be published. Required fields are marked *