Title: Error cropping image
Last modified: August 22, 2016

---

# Error cropping image

 *  [Hepple](https://wordpress.org/support/users/hepple/)
 * (@hepple)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/error-cropping-image/)
 * 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)

 *  [ahamelers](https://wordpress.org/support/users/ahamelers/)
 * (@ahamelers)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-cropping-image/#post-5760480)
 * 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](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-cropping-image/#post-5760484)
 * [@ahamelers](https://wordpress.org/support/users/ahamelers/) [Per the forum welcome please start your own topic instead](http://codex.wordpress.org/Forum_Welcome#Where_To_Post).
 * [https://wordpress.org/support/forum/how-to-and-troubleshooting#postform](https://wordpress.org/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.
 *  [ahamelers](https://wordpress.org/support/users/ahamelers/)
 * (@ahamelers)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-cropping-image/#post-5760486)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [ahamelers](https://wordpress.org/support/users/ahamelers/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/error-cropping-image/#post-5760486)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
