• Resolved fleeingandorra

    (@fleeingandorra)


    I am unable to crop images in the WordPress UI. It returns the error:

    Error filename.png
    There has been an error cropping your image.

    I have read that this may be because WordPress requires PHP-GD to be enabled. I set the uploads folder permissions to 777 (which seems unnecessary) and used the instructions available here to check whether GD is running on my VPS. It does not seem to be. Is this the problem? Does WordPress still use GD for manipulating images?

    I am running an Apache/Centos VPS and have already tried to install GD using various methods from older sources (all of which are pre-PHP 5.4) but the yum packages which are recommended in older manuals no longer seem to be available. This is what led me to wonder whether GD has been deprecated. If it is still in use, I would be most grateful for any recommendations as to how I can install it without rebuilding PHP.

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    (@esmi)

    Does WordPress still use GD for manipulating images?

    As far as I am aware, yes.

    Thread Starter fleeingandorra

    (@fleeingandorra)

    Does WordPress still use GD for manipulating images?

    As far as I am aware, yes.

    Thanks, esmi! It appears that you are right. GD is now working and my images are cropping fine.

    For future reference, the problem I had was that every time I tried to yum install php-gd, I received an error telling me that no such package was available. This was resolved by rebuilding PHP in the WHM, using EasyApache – enabling the GD module on the Exhaustive Options List.

    A more detailed account of why this problem may have arisen (WHM ‘excluding’ GD from yum updates) is available here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable to crop images’ is closed to new replies.