• Resolved ibastos

    (@ibastos)


    Hi, I have a problem with my localhost website.

    When I try to crop an image with the Editor Block > Crop tool in a post, doesn’t work.

    When I try to make it, I get this message:

    Could not edit image. Unable to edit this image.

    This only happens in my localhost website, when I do the same in the public server, there is no problem.

    On my computer I have XAMPP activated in C:\xampp\

    I have no write or permission problems in my directory (when I edit an image manually, I don’t get any problems).

    I don’t understand why this happens to me on the localhost.

    I would like to solve this problem, because I need to test the web locally first before uploading it.

    Thanks in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Dion

    (@diondesigns)

    It’s possible your localhost site is missing an image editor PHP extension. Check the Site Health page. Does it contain any errors regarding a missing GD PHP extension? If so, enable the GD extension in your php.ini file, and then restart Apache from within Xampp.

    Another possibility is that while you have file edit permissions on the image as an interactive computer user, is that your apache webserver program does not have these permissions.

    Thread Starter ibastos

    (@ibastos)

    Thank you @diondesigns

    I just remove the “;” of “;extension=gd” and now it’s working.

    Bro. I’m a noob in this. I cannot crop my favicon. Can ya pls tell about the exact steps what ya have done to remove the extension? For your information I have wordpress installed locally using xamp.

    Just go to php.ini where xampp is installed, assuming it’s C:\xampp\php by default. Open the file, find the line ;extension=gd and remove that semicolon. Restart xampp server and it should work.

    @devsba6996 If you can’t find ;extension=gd in your php.ini then just insert a new line extension=gd to the bottom of the file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘“Could not edit image. Unable to edit this image.” (localhost)’ is closed to new replies.