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

This site uses Akismet to reduce spam. Learn how your comment data is processed.