I'm trying to resize my product images so they all fit in a 1:1 square. To prevent cutting off the edges I want to add whitespace, but it adds black bars instead of transparent ones. My code:
$image->quality(90);
$image->keepAspectRatio(true);
$image->keepFrame(true);
$image->keepTransparency(true);
if($height == $width) {
$image->resize(1000, 1000);
}
$image->save($cachedImagePath);
However, it turns out like this:
Any ideas on how to change the black bars to white? I'm running 1.9.0.1 with the latest patches installed (up to 9767). Thanks in advance!