Image Crop Editor Not working

前端 未结 16 2038
自闭症患者
自闭症患者 2020-12-15 05:55

I am having an issue in WordPress admin, where the images are not cropping in WP \"edit image\" for a site I am creating and I do not know what the cause is.

I\'ve r

相关标签:
16条回答
  • 2020-12-15 06:25

    I had the same problem, but for me the solution was quite easy. All I had to do was to remove the image from the media page and then upload it again.

    Hope this helps someone else

    0 讨论(0)
  • 2020-12-15 06:28

    I had the same issue but the problem was missing the GD library, https://www.digitalocean.com/community/questions/installing-the-gd-image-library

    To install (Linux/ Apache2):

    sudo apt-get update
    sudo apt-get install php5-gd
    sudo service apache2 restart
    
    0 讨论(0)
  • 2020-12-15 06:29

    I faced the same problem and got it solved. This may be a very late response, but can be useful for other people facing this problem. This is how I resolved it:

    Check your functions.php file. See, if you have the closing tag at the every end of the file.

    ?>
    

    removing this tag fixed my problem. Also can check out this link. Hope this helps!

    0 讨论(0)
  • 2020-12-15 06:29

    I was having this issue because the Media Previewer/Cropper was attempting to pull the images from http instead of https and my server kept reporting an error 400 when attempting to pull the source images because I do not currently expose traditional non-ssl HTTP.

    IE: I'm running on an alternate port and using https://server:9090. When I attempt to crop an image, it tries to load the image via non-ssl http://server:9090/path/to/image.png. It doesn't use the correct protocol and the server responds with a 400 error, thus the cropper is unable to load the image and continue.

    In my case, this was happening in the "Customize" section under "Themes". When using the Media Library, it loaded the image correctly over SSL. However, I can't change the image in the customizer without enabling http.

    0 讨论(0)
提交回复
热议问题