resize --> scale in face preview (#72)

old-stable24
Varun Patil 2022-10-18 07:54:44 -07:00
parent 44dbadf7f0
commit b2eea7cf99
1 changed files with 1 additions and 1 deletions

View File

@ -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