• I can upload images to the Media Library and I can view them. However, if I view an image and click the “Edit Image” button I see a broken image icon. Additionally, the crop image and rotate image buttons are grayed out. The scale feature appears to work, but if I enter a new dimension and click “Scale” I receive the error “unable to create new image.”

    image.php and image-edit.php are present in the wp-admin/include. They have -4–rw-r– permissions.

    Any help would be greatly appreciated. The client I’m passing this off to will need image cropping available to them.

    I’ve tried changing the theme as well as deactivating and reactivating the plugins I have installed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am having the same problem. Fresh install of WP 4.3.1. Can’t edit uploaded images. The editor just shows a broken image. The broken img tag looks like something like this:
    <img id="image-preview-21" onload="imageEdit.imgLoaded('21')" src="/wp-admin/admin-ajax.php?action=imgedit-preview&_ajax_nonce=d69e568161&postid=21&rand=71570">

    Changing the permissions did not help.

    I am developing on a Windows 7 box, FWIW, and running the site locally using IIS 7.5.

    I think I figured this out, at least in my case. There was no available image editing extension. WordPress tries to use ImageMagick, if it’s installed. If not, it falls back to the GD library. In my case, neither extension was enabled in php.ini.

    I tried to install/enable ImageMagick, but getting it to work with PHP in Windows/IIS turns out to be a very deep, dark rabbit hole, and I gave up after a few hours.

    Enabling GD is a one-line fix. Just uncomment extension=php_gd2.dll in php.ini. Image editing works now.

    dwheeler

    (@dwheeler)

    I had the same problem, it wasn’t the GD extension but a blank line in the functions.php file in the theme folder.

    hello, when I try to edit image I get the broken icon and cannot do anything with the image. library is good, images show up on the web pages just fine. only prob is cannot edit/rotate etc seems like SOMEBODY who makes WP could tells us why this is and how to fix.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit Image not Working’ is closed to new replies.