WordPress HTTP Error when uploading images

Home / Projects / WordPress HTTP Error when uploading images

After upgrading this site to WordPress 4.5 an HTTP error began to occur when uploading some images.
I found the following defect, which has not been resolved at this time: Defect #36534

There are a couple of workarounds which can be attempted to resolved this issue.

  1. Add the following to the .htaccess file

    Unfortunately this fix did not work for me. Be aware that this fix will limit imagemagick to a single thread if you have multi-thread capabilities available.

  2. Add the following to your current themes functions.php
    add_filter( 'wp_image_editors', 'change_graphic_lib' );
    function change_graphic_lib($array) {
    return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );

    This workaround resolved my image upload issues by forcing wordpress to use the GD Image Library instead of imagemagick. You will likely want to revert this change once a fix has been released.

Leave a Reply

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