1
Hi!
I've been using myalbum, but the thumbnails looked crappy when using GD2 (see
https://xoops.org/modules/newbb/viewtopic.php?topic_id=47196&start=0#forumpost207597)
The solution can be found in the GD library faq (
http://www.boutell.com/gd/faq.html)
Quote:
Why do my JPEG thumbnails have missing colors with gd 2.0.x?
When creating truecolor images, you need to call gdImageCreateTrueColor, not gdImageCreate. This used to "work" in gd 1.x, but only in the sense that gd 1.x had no support for real truecolor at all, so it faked it by dithering your image. gd 2.x supports real truecolor, and also has a better way of reducing to palette color when you really want to do that; see the gdImageTrueColorToPalette function -- but you don't need it for this job. PHP and Perl programmers: the function names for you are similar, just leave off the gd prefix.
So chainging line 134 in myalbum\include\functions.php to this will handle the problem:
//$dst_img = imagecreate( $new_w , $new_h ) ;
$dst_img = imagecreatetruecolor( $new_w , $new_h ) ;