[Mediawiki-l] GD2 warning

Jamie Bliss astronouth7303 at gmail.com
Sat Dec 31 16:49:06 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A few warnings about using GD2 as your thumbnail generator.

I have found at least 2 bugs with the GD2 library, both dealing with
PNGs with an alpha channel. One of them is purely aesthetic; the other
silently crashes PHP (and Apache).

The first bug is that in resizing a PNG image, it will either (depending
on how the destination image was created)
* Keep the alpha and change the colors to shades of an arbitrary one (in
my case, yellow)
* Loose the alpha

The second bug is that while loading the source image, GD2 causes some
kind of error and silently kills PHP and (if you're using SAPI) Apache.
(To know that it is actually crashing Apache, try running Apache with
"-D ONE_PROCESS".)

Just a word of warning. There are advantages to running other programs
to do your work.

- -- Jamie
- -------------------------------------------------------------------
http://endeavour.zapto.org/astro73/
Thank you to JosephM for inviting me to Gmail!
Have lots of invites. Gmail now has 2GB.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDtraChSTbi9X4m60RAoTVAJ9B01xw6QhLgRpFTq2XBvSYRHu3rQCfcSZF
cd9iOW7jjMVinsIze3zjVzY=
=ciTW
-----END PGP SIGNATURE-----




More information about the MediaWiki-l mailing list