From b2eea7cf9939ea795304820bfedb50d198cefc88 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Tue, 18 Oct 2022 07:54:44 -0700 Subject: [PATCH] resize --> scale in face preview (#72) --- lib/Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 87786dd1..252c0773 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -465,7 +465,7 @@ class ApiController extends Controller { intval($dcx * $iw - $faceDim / 2), intval($dcy * $ih - $faceDim / 2), ); - $image->resizeImage(256, 256, \Imagick::FILTER_LANCZOS, 1); + $image->scaleImage(256, 256, true); $blob = $image->getImageBlob(); // Create and send response