Found several reports for this but none for core yet. #318241: warning: imagecolorsforindex() [function.imagecolorsforindex]: Color index 255 out of range in image.gd.inc (line 108) is the D6 issue for imageapi. Patch is the same.

Comments

aspilicious’s picture

Good to go for me, someone else willing to rtbc?

Status: Needs review » Needs work

The last submitted patch, gd_transparency.patch, failed testing.

aspilicious’s picture

Status: Needs work » Needs review

gd_transparency.patch queued for re-testing.

marcingy’s picture

Status: Needs review » Reviewed & tested by the community

Happy to mark as RTBC.

marcingy’s picture

gd_transparency.patch queued for re-testing.

sun’s picture

gd_transparency.patch queued for re-testing.

dries’s picture

Status: Reviewed & tested by the community » Needs work

There are a couple of other instances of this pattern in the code. Shouldn't we fix those for consistency?

marcingy’s picture

Version: 7.x-dev » 8.x-dev
Status: Needs work » Needs review
Issue tags: +Needs backport to D7
StatusFileSize
new1.67 KB

Adding check other occurences of this pattern. Moving to d8 as it needs to be fixed there first.

Status: Needs review » Needs work
Issue tags: -Needs backport to D7

The last submitted patch, colour-index-859304-8.patch, failed testing.

marcingy’s picture

Status: Needs work » Needs review
Issue tags: +Needs backport to D7

#8: colour-index-859304-8.patch queued for re-testing.

scor’s picture

StatusFileSize
new1.69 KB

reroll for D8. patch successfully tested on both D7 and D8.

marcingy’s picture

Status: Needs review » Reviewed & tested by the community

Not sure if I can really rtbc but given that #11 obviously involved a review of my patch.....

chx’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

Thanks for working on this patch. It could use an automated test before it is committed. If you need help you can ask the friendly people in the #drupal-contribute IRC channel.

holdmann’s picture

#8 works fine for me =)

Honestly Illustrated’s picture

#8 RTBC on D 7.22, fixed two flaws:

Warning: imagecolorsforindex(): Color index 6 out of range in image_gd_create_tmp() (line 310 of /var/www/modules/system/image.gd.inc).

... the gif which popped that error, when passing through unpatched D 7.22, was having that color index trashed on the resulting thumbnail. Patch in #8 also solves that.

Thank you much, and please backport this so we don't have to reapply patch at next upgrade.

claudiu.cristea’s picture

Any takers for #11 reroll + test?

ydahi’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 11: 859304_11_imagecolorsforindex.patch, failed testing.

The last submitted patch, 11: 859304_11_imagecolorsforindex.patch, failed testing.

quotesbro’s picture

pjcdawkins’s picture

mondrake’s picture

Status: Needs work » Closed (duplicate)

Let's close this then.