<?php
bool public Imagick::writeImage(
string $filename = NULL
);
?>
<?php
$origname = PATH2IMGW . '/bmp/3.bmp';
$newname = PATH2IMGL . '/results/3new.bmp';
$imagick = new Imagick($origname);
$imagick->setImageFilename('3new.bmp');
$name = $imagick->getImageFilename();
echo $name;
$imagick->writeImage($newname);
?>
<?php
$origname2 = PATH2IMGW . '/png/E 01 01.png';
$newname2 = PATH2IMGL . '/results/E 01 01new.jpg';
$imagick = new Imagick($origname2);
$imagick->setImageFilename('E 01 01new.jpg');
$name = $imagick->getImageFilename();
echo $name;
$imagick->writeImage($newname2);
?>