• I am trying to add a header image to my WordPress site.

    I have gone to “Appearance >> Header Image >> Add New Image” and uploaded an image. I then press “Select and crop” and then press “Crop”. When I do this I get the error “There has been an error cropping your image.” which is completely unhelpful.

    I haven’t been able to find any solutions to this online. I have tried with various different images, none of them work. As a result I cannot set any image to be the header image.

    How do I fix this problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I am having the same problem. It seems like a bug, looking at the error messages I’m getting in my logs:

    [Tue Feb 10 11:13:34 2015] [error] [client 128.175.82.107] PHP Warning:  imagecreatetruecolor(): Invalid image dimensions in /home/www/html/library/wp-includes/media.php on line 2043, referer: [...]/wp-admin/customize.php?theme=[..]
    [Tue Feb 10 11:13:34 2015] [error] [client 128.175.82.107] PHP Warning:  imageantialias() expects parameter 1 to be resource, boolean given in /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line 283, referer: [...]/wp-admin/customize.php?theme=[...]
    [Tue Feb 10 11:13:34 2015] [error] [client 128.175.82.107] PHP Warning:  imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line 285, referer: [...]/wp-admin/customize.php?theme=[...]
    [Tue Feb 10 11:20:28 2015] [error] [client 128.175.82.107] PHP Warning:  imagecreatetruecolor(): Invalid image dimensions in /home/www/html/library/wp-includes/media.php on line 2043, referer: [...]/wp-admin/customize.php?theme=[...]
    [Tue Feb 10 11:20:28 2015] [error] [client 128.175.82.107] PHP Warning:  imageantialias() expects parameter 1 to be resource, boolean given in /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line 283, referer: [...]/wp-admin/customize.php?theme=[...]
    [Tue Feb 10 11:20:28 2015] [error] [client 128.175.82.107] PHP Warning:  imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line 285, referer: [...]/wp-admin/customize.php?theme=[...]
    [Tue Feb 10 14:20:34 2015] [error] [client 128.175.82.107] PHP Warning:  imagecreatetruecolor(): Invalid image dimensions in /home/www/html/library/wp-includes/media.php on line 2043, referer: [...]/wp-admin/customize.php?return=%2Fdisc%2Fwp-admin%2Fthemes.php&autofocus[control]=header_image
    [Tue Feb 10 14:20:34 2015] [error] [client 128.175.82.107] PHP Warning:  imageantialias() expects parameter 1 to be resource, boolean given in /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line 283, referer: [...]/wp-admin/customize.php?return=%2Fdisc%2Fwp-admin%2Fthemes.php&autofocus[control]=header_image
    [Tue Feb 10 14:20:34 2015] [error] [client 128.175.82.107] PHP Warning:  imagecopyresampled() expects parameter 1 to be resource, boolean given in /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line 285, referer: [...]/wp-admin/customize.php?return=%2Fdisc%2Fwp-admin%2Fthemes.php&autofocus[control]=header_image
    [Tue Feb 10 14:23:25 2015] [error] [client 128.175.250.132] Invalid URI in request GET  HTTP/1.1
    [Tue Feb 10 14:32:58 2015] [error] [client 128.175.82.106] PHP Warning:  imagecreatetruecolor(): Invalid image dimensions in /home/www/html/library/wp-includes/media.php on line 2043, referer: [...]/wp-admin/customize.php?return=%2Fdisc%2Fwp-admin%2F&autofocus[control]=header_image
    [Tue Feb 10 14:32:58 2015] [error] [client 128.175.82.106] PHP Warning:  imageantialias() expects parameter 1 to be resource, boolean given in /home/www/html/library/wp-includes/class-wp-image-editor-gd.php on line 283, referer: [...]/wp-admin/customize.php?return=%2Fdisc%2Fwp-admin%2F&autofocus[control]=header_image
    [Tue Feb 10 14:32:58 2015] [error] [client 128.175.82.106] PHP Warning:  imagecopyresampled() expects parameter 1 to be resource, boolean given in [..]/wp-includes/class-wp-image-editor-gd.php on line 285, referer: [..]/wp-admin/customize.php?return=%2Fdisc%2Fwp-admin%2F&autofocus[control]=header_image
    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @ahamelers Per the forum welcome please start your own topic instead.

    https://www.ads-software.com/support/forum/how-to-and-troubleshooting#postform

    Your problem while similar may not be the same and it’s considered impolite to take over someone else’s topic.

    Okay, thanks! I think I was treating this as bug reporting, rather than support. Oops.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error cropping image’ is closed to new replies.