I have made a site and used MaxiGallery with the "thumb_use_dropshadow" option. It all worked perfect, but since a move to another webhoster it stopped working!
The problem is that new pictures now don’t get a nice dropshadow, but a nasty and ugly black border around it where the shadow is supposed to be. What setting has to be on on the server to get it working again? Do I need a specific GD / ImageMagick module to get it working again?
with regards,
Ronald Lokers
'Front-end developer' @
h2o Media
Got the same problem I guess, upgraded to 0.9.6.2 but no cure for now...
http://www.avander.be/index.php?id=85
A thing of beauty is a joy forever ( John Keats)
I believe that you need GD2.x.xx at least for the dropshadows. But I’m not sure if that’s the problem that you are having..
Have you checked that the shadow images are ok in /assets/snippets/maxigallery/dropshadow ?
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
The dropshadows png are ok.
Friskt kopplat, h
Ran some tests on the code and localized the problem in class.dropshadow.php:
@ImageFill($this->_imgShadow, 0, 0, @ImageColorAllocate($this->_imgShadow, $background[0], $background[1], $background[2]));
It seems like the gd imagefill always put out black instead of white that it supposed to do to see the dropshadow. I looked it up with my webhotel at one.com and they verified the problem. They’re on GD 2.0.34.
Guess I’ll just have to wait and see if they want to solve it...
Friskt kopplat, h
Didn’t want to wait, so made a little workaround to solve the immediate problem.
In class.dropshadow.php, exchange the line:
@ImageFill($this->_imgShadow, 0, 0, @ImageColorAllocate($this->_imgShadow, $background[0], $background[1], $background[2]));
with:
@imagefilledrectangle($this->_imgShadow, 0, 0, $nx, $ny, @ImageColorAllocate($this->_imgShadow, $background[0], $background[1],$background[2]));
Friskt kopplat, h
Good to know.. I haven’t done that class, so I don’t have much info to give.. glad to see you were able to sort it out.
Just to confirm, does it work all ok now with that changed?
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Yes, changing that line makes it work.
I have read a lot of posts on the net with people having problems with the imagefill function, so I guess if people have problems with this, it sure is a good workaround.
Friskt kopplat, h