1
e-u-l-o-g-y
Bug in MyAlbum-P

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 ) ;

2
hervet
Re: Bug in MyAlbum-P
  • 2006/2/22 12:13

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


verify it but it seems to me that there is an option in the module's options to force theuser of GD2 to solve this kind of problems.

3
e-u-l-o-g-y
Re: Bug in MyAlbum-P

Ooops... I totally missed that one Thanks

Login

Who's Online

333 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 333


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits