image: set autoOrient flag
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/563/head
parent
abfe0cf94d
commit
b6d251ebf5
|
@ -297,6 +297,7 @@ class ImageController extends GenericApiController
|
||||||
|
|
||||||
// Convert to JPEG
|
// Convert to JPEG
|
||||||
try {
|
try {
|
||||||
|
$image->autoOrient();
|
||||||
$image->setImageFormat('jpeg');
|
$image->setImageFormat('jpeg');
|
||||||
$image->setImageCompressionQuality(95);
|
$image->setImageCompressionQuality(95);
|
||||||
$blob = $image->getImageBlob();
|
$blob = $image->getImageBlob();
|
||||||
|
|
Loading…
Reference in New Issue