Interlace output jpeg
parent
dbaf9dcc1b
commit
145d6affdd
|
@ -140,6 +140,10 @@ class FacesController extends ApiBase
|
||||||
return new DataResponse([], Http::STATUS_NOT_FOUND);
|
return new DataResponse([], Http::STATUS_NOT_FOUND);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set quality and make progressive
|
||||||
|
$image->setImageCompressionQuality(80);
|
||||||
|
$image->setInterlaceScheme(\Imagick::INTERLACE_PLANE);
|
||||||
|
|
||||||
// Crop image
|
// Crop image
|
||||||
$dw = (float) $detection['width'];
|
$dw = (float) $detection['width'];
|
||||||
$dh = (float) $detection['height'];
|
$dh = (float) $detection['height'];
|
||||||
|
|
|
@ -126,6 +126,7 @@ class ImageController extends ApiBase
|
||||||
$image = new \Imagick($path);
|
$image = new \Imagick($path);
|
||||||
$image->setImageFormat('jpeg');
|
$image->setImageFormat('jpeg');
|
||||||
$image->setImageCompressionQuality(95);
|
$image->setImageCompressionQuality(95);
|
||||||
|
$image->setInterlaceScheme(\Imagick::INTERLACE_PLANE);
|
||||||
$blob = $image->getImageBlob();
|
$blob = $image->getImageBlob();
|
||||||
|
|
||||||
// Return the image
|
// Return the image
|
||||||
|
|
Loading…
Reference in New Issue