How to Skalite image without anti-aliasing?

When scaly picture using
$result->scaleImage($result->getImageWidth()*1.1, $result->getImageHeight() * 1.1);

poyavlyautsya here are the things
KUmnyXD.png

And need to after worked without them
k8Qv6tD.png

How can I do that in PHP or just in the console using imagemagick?
UPD: Found methadonemaintenance function Imagick::setAntiAlias(bool); but it seems not working
April 19th 20 at 12:30
1 answer
April 19th 20 at 12:32
Solution
Can somehow like that:
convert input.png -interpolate Integer -filter point -resize "10000%" output.png

Find more questions by tags image processingImageMagickPHP