What i'm trying to do is to scale logo uploads and also make the image background transparent but only if the background is white.
I'm scaling the image using PHP code below.
Please can anyone help?
Code: Select all
function MakeThumb($height, $width, $original, $new_file, $mime_type)
{
// iMagick
if(class_exists('Imagick'))
{
$thumb = new Imagick($original);
$thumb->scaleImage($width, $height, true);
$thumb->writeImage($new_file);
$thumb->destroy();
}
}