I'm trying to convert PNG and GIF files using Imagick.
Here is my code:
Code: Select all
try {
$thumb4 = new Imagick($name . '.' . $extension_upload);
$thumb4->setImageOpacity(1.0);
$thumb4->resizeImage(318,212,Imagick::FILTER_LANCZOS,1);
$thumb4->writeImage($name . '.' . "bmp");
$thumb4->destroy();
} catch (Exception $e) {
echo '<br />Corrupt file!';
}
Why blue?
How can I convert transparency in white?
Thank you for your help
