image: set autoOrient flag

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-03-29 15:08:44 -07:00
parent abfe0cf94d
commit b6d251ebf5
1 changed files with 1 additions and 0 deletions

View File

@ -297,6 +297,7 @@ class ImageController extends GenericApiController
// Convert to JPEG
try {
$image->autoOrient();
$image->setImageFormat('jpeg');
$image->setImageCompressionQuality(95);
$blob = $image->getImageBlob();