I used to be color blind...

Submitted by gwolf on Fri, 04/24/2009 - 12:05

I was contacted today via private e-mail by Rafal Czlonka, as the hackergotchi I use (at least) in Planet Debian is wrongly rendreed by his WebKit-based web browser, Arora. So, in order to get more people to notice the bug if it exists: This is my hackergotchi (copied from Planet Debian, so I can update it and this post still shows a valid one):

And this is the sample he sent me on how it is rendered by Arora - Pay no attention to the horizontal lines (those are taken from the background where it is rendered):

So, is the first image correctly rendered? (I usually have my skin in a pinkish tone, and I was wearing a blue shirt). But, yes, that makes understanding the PNG encoding a bit more interesting. I guess PNG defines hues (as neither of those colors is completely uniform, they both vary slightly depending on the section of the picture)... And for some reason, my hackergotchi (generated by the Gimp) confuses the renderer and makes it switch the hue areas?

(Note that I am tempted to use the corrected version as my hackergotchi.. It looks more interesting!)

[update] I could not resist it... and have uploaded my blue hackergotchi to planet.debian.org - Yes, I'm a smurf now, it's no longer a rendering error.

( categories: )
Julian Andres Klode's picture

Works for me.

It works for me on unstable, using
Arora (WebKit Qt 4.4.3-2)
Midori (WebKit GTK+ 1.1.3-3)
Iceweasel (Gecko

There seems to be a bug in the version of WebKit he is using (which is shipped as part of Qt).

rjc's picture


I've mentioned to Gunnar before, that this affects Arora on Debian (QtWebKit).
Midori and Kazehakase (two other WebKit-based web browsers in the repository) are unaffected. Neither is Iceweasel or Opera or other platforms for that matter (eg. Arora on Mac OS X and Windows renders it correctly).
Arora + Qt were stock Debian ones (unstable).

Julian Andres Klode's picture

Maybe you did not understand

Maybe you did not understand me. All browsers I listed produces exactly the same result, without any problems.

See This image for an example of Arora. I verified it with Qt 4.4 (unstable) and Qt 4.5 (experimental),
using CDE & GTK+ styles and everything works perfectly for me.

rjc's picture

He shoots, he scores!

I did understand.
Your screenshot allowed me to nail it down, though!
As it is too big to fit into my browser window it has been scaled and some colours got all funny, eg. heads got blue, etc.
I don't know how did I miss it in the first place (I did check the planet's markup before). Affected are only those "heads" which have "height" and "width" not set to their correct values, eg.:

  1. <a href="http://fboudra.free.fr/wordpress">
  2. <img class="face" src="heads/fabo.png"
  3. width="65" height="85"
  4. alt="hackergotchi for " >

The actual size of that PNG is 69x96.

So that narrows it down a bit.
Is this a PowerPC specific (or big-endian in general) bug again? Funny, as I thought I'd checked it at work as well (i386).
Anyway, thanks for taking the interest.

rjc's picture

PNG in Arora

I have to add though that both of the images are taken from Arora: the one on the left is how it looks like on the website, the one on the right is how it looks like "on its own" (PNG image opened in the new tab).

gwolf's picture


...I didn't understand in your mail that the hackergotchi was displayed fine by itself. Even stranger... That's then not as much a bug in the PNG decoder (I guess it uses libpng much like anything else) but in Webkit. Does it _always_ happen at planet Debian? Does it happen with the image on this post? With the hackergotchi as part of the message body in Planet Debian?

vicm3's picture

The corrected version?

You say where you look like a smurf? :)

Javi's picture

Hey blue man!

You look like X-Men Beast in that picture :)

I think you should fix that horizontal lines and start using it now!

ps: Your geeky captcha looks amazing.

Albert's picture

Looks good in Epiphany Webkit

Works for me with Epiphany Webkit, and best captcha ever!

Johannes Berg's picture

also borked in gtkhtml

Fun. But evolution, via gtkhtml, is also displaying you as a smurf...

gwolf's picture

Don't test on planet anymore!

..I have uploaded my blue face over there.

henzenmann's picture

Rendering error!

This is what it looks like on my PC!!! ;-)

poli dudik's picture


well... knowing that you are not having easy times there... anyway, have a very happy birthday. I don't know if u are going to be able to go to teh office, but if not... try to enjoy it at home! as it is said: al buen tiempo, buena cara!

Ismael's picture

In the Opera RSS reader the

In the Opera RSS reader the same bug occurs, your face appears blue. When opening the web page, it appears normal. Until this post I thought you went blue for some crazy reason :P

Opera info:
Version 9.64
Build 2480
Platform Linux
System x86_64, 2.6.29-2-amd64
Qt library 3.3.8b

Opera/9.64 (X11; Linux x86_64; U; en) Presto/2.1.1