Are there any known issues with GetPantheon? When I enable an adaptive style, I get:

Warning: imagecreatetruecolor(): Invalid image dimensions in image_gd_create_tmp() (line 302 of /srv/bindings/b918c4a781b84488b684029e3b104939/code/modules/system/image.gd.inc).
Warning: imagealphablending() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 319 of /srv/bindings/b918c4a781b84488b684029e3b104939/code/modules/system/image.gd.inc).
Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 320 of /srv/bindings/b918c4a781b84488b684029e3b104939/code/modules/system/image.gd.inc).
Warning: imagefill() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 321 of /srv/bindings/b918c4a781b84488b684029e3b104939/code/modules/system/image.gd.inc).
Warning: imagealphablending() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 322 of /srv/bindings/b918c4a781b84488b684029e3b104939/code/modules/system/image.gd.inc).
Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 323 of /srv/bindings/b918c4a781b84488b684029e3b104939/code/modules/system/image.gd.inc).
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in image_gd_resize() (line 86 of /srv/bindings/b918c4a781b84488b684029e3b104939/code/modules/system/image.gd.inc).

Comments

sahaj’s picture

Happy to see that I'm not the only one! Exactly the same error messages with Pantheon and Adaptative images.

Could you solve this nor get any support from Pantheon?

CLEE25’s picture

I know this thread is 3 years old, but same issue. Has anyone found a solution?

memcinto’s picture

Our sites are on Pantheon. We get these errors consistently under the following scenarios:

(1) When creating or editing an image style that has no effects other than "Adaptive 1382, 992, 768, 480"

(2) When saving a node where you have uploaded an image to an image field, then used the Insert module to insert it, selecting one of the image styles that have that effect.

Warning: imagecreatetruecolor(): Invalid image dimensions in image_gd_create_tmp() (line 338 of /[pantheon docroot]/modules/system/image.gd.inc).
Warning: imagealphablending() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 369 of [pantheon docroot]/modules/system/image.gd.inc).
Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 370 of [pantheon docroot]/modules/system/image.gd.inc).
Warning: imagefill() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 371 of [pantheon docroot]/modules/system/image.gd.inc).
Warning: imagealphablending() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 372 of [pantheon docroot]/code/modules/system/image.gd.inc).
Warning: imagesavealpha() expects parameter 1 to be resource, boolean given in image_gd_create_tmp() (line 373 of [pantheon docroot]/code/modules/system/image.gd.inc).
Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in image_gd_resize() (line 81 of [pantheon docroot]/code/modules/system/image.gd.inc).

We are running Drupal 7.61, PHP 7.2.13, Adaptive Image 7.x-1.4, and Insert 7.x-1.4.