As the summary already says. If mod_php is compiled using --enable-gd-native-ttf (which is the default), then gd seems to break. jpg images rendered via GD are displayed in 16 colors while .png seems to completely break. Simply removing that line from the ebuild fixed the problem for me. btw, I'm using the latest stable packages as of 01-20-2003.
is this reproducable on anyone else's box?
if you configure php with the option '--with-gd' then it'll use the built in gd module ... you have to use '--with-gd=/usr' in order to use external libgd library ... i was going to file a bug about this ... i'd suggest something along the lines of: if [ `use gd` ] ; then myconf="${myconf} --with-gd=/usr" else myconf="${myconf} --with-gd" fi oooooooor even just doing this: use gd && myconf="${myconf} --with-gd=/usr" (and not turning on bundled gd library at all ...) i had horrible quality jpeg images because i had been using 'imagecreate' rather than 'imagecreatetruecolor' ...
oh, and add libgd to DEPEND ;)
Yes, this one bit me as well. I'm running websites needing imagettftext() to work, and this (obviously) got terribly b0rked. Took me about a day to find out what was wrong. :( 4.3.0-r1 works, and as reported, the --enable-gd-native-ttf causes all the headaches.
ok, i disabled the native truetype stuff with gd ... now it'll use external freetype libraries (which it really should, as far as i can tell ...) also, i updated gd support so that it uses the external gd library ... it supports libgd-1.x and libgd-2.x, so there shouldnt be any troubles ;) http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/dev-php/mod_php/mod_php-4.3.1.ebuild.diff?r1=1.6&r2=1.7