168: Indexed Colour Garfield

From SRoMG Explained
Jump to navigationJump to search
Indexed Colour Garfield
0168.png
Made by: superluser


Explanation[edit | edit source]

This comic claims to be a Garfield comic converted to an indexed color image file. However, the index is deliberately restrictive, consisting entirely of greys and blacks, and the indexing is even worse, assigning black colors to every pixel.

Presumably, the original strip was chosen for Jon's comment, as this edit appropriately renders Jon invisible, in addition to everything shown in the panels of the original strip.

The author writes:[edit | edit source]

Original: 1992-08-22

You could do indexed PNG with 8 colours (such as FFFFFF for panel 1, FEFFFF for panel 2, FFFEFF for panel 3, FFFFFE for panels 1 and 2, etc.). In fact, you might even be able to do 8 identical index colours (does PNG allow that?).

As it turns out, yes, it does:

ISO 15948:2003, section 11.2.3:
There is no requirement that the palette entries all be used by the image, nor that they all be different.

The guide to the index:

  • 0 - white in all
  • 1 - black in panel 1
  • 2 - grey in panel 1
  • 3 - black in panel 2
  • 4 - grey in panel 2
  • 5 - black in panel 3
  • 6 - grey in panel 3
  • 7 - black in panel 1 and 2
  • 8 - grey in panel 1 and 2
  • 9 - black in panel 1, grey in panel 2
  • 10 - grey in panel 1, black in panel 2
  • 11 - black in panel 1 and 3
  • 12 - grey in panel 1 and 3
  • 13 - black in panel 1, grey in panel 2
  • 14 - grey in panel 1, black in panel 3
  • 15 - black in panels 2 and 3
  • 16 - grey in panels 2 and 3
  • 17 - black in panel 2, grey in panel 3
  • 18 - grey in panel 2, black in panel 3
  • 19 - black in panel 1 and 2, grey in panel 3
  • 20 - black in panel 1 and 3, grey in panel 2
  • 21 - black in panel 2 and 3, grey in panel 1
  • 22 - grey in panel 1 and 2, black in panel 3
  • 23 - grey in panel 1 and 3, black in panel 2
  • 24 - grey in panel 2 and 3, black in panel 1
  • 25 - grey in all
  • 26 - black in all
  • 27 - I'm not sure why this is here.

Transcript[edit | edit source]

{What appears to be a black square}