For some reason I can't get the greyscale to work with a resize:
function generateLogoH30Grey($gd) {
$gd->setQuality(100);
$gd->paddedResize(70,30);
return $gd->greyscale();
}
The above example gives me back grey images, but they are the original size (so paddedresize is cancelled) rather than width 70 and height 30.
function generateLogoH30Grey($gd) {
$gd->setQuality(100);
$gd->greyscale();
return $gd->paddedResize(70,30);
}
And the above gives me resized images as expected but then the greyscale is cancelled (so the images are back in color).
Does anybody have any experience with resize/greyscale combinations? What am I overlooking?
I looked at the code in the gd class, and it would seem that it should work either way....?