resize --> scale in face preview (#72)
parent
44dbadf7f0
commit
b2eea7cf99
|
@ -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