resize --> scale in face preview (#72)
parent
5de3e90b99
commit
ed8494570e
|
@ -465,7 +465,7 @@ class ApiController extends Controller {
|
||||||
intval($dcx * $iw - $faceDim / 2),
|
intval($dcx * $iw - $faceDim / 2),
|
||||||
intval($dcy * $ih - $faceDim / 2),
|
intval($dcy * $ih - $faceDim / 2),
|
||||||
);
|
);
|
||||||
$image->resizeImage(256, 256, \Imagick::FILTER_LANCZOS, 1);
|
$image->scaleImage(256, 256, true);
|
||||||
$blob = $image->getImageBlob();
|
$blob = $image->getImageBlob();
|
||||||
|
|
||||||
// Create and send response
|
// Create and send response
|
||||||
|
|
Loading…
Reference in New Issue