I use the Imagick's function thumbnailImage
to resize my PNG image.
It doesn't change the size on my website, but with the function getImageGeometry
the new dimension has been applied. I've also used the function resizeImage
but nothing changes.
My script (running on Windows):
$im = new \Imagick();
$im->readImage('page.png');
$im->thumbnailImage(1024, 768, TRUE);
echo "<img src='page.png'>";