Skip to content

Commit

Permalink
Improved auto orientate
Browse files Browse the repository at this point in the history
  • Loading branch information
libern committed Jan 5, 2020
1 parent a48d760 commit a0c9f55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Someline/Image/SomelineImageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public function showImage($template_name, $image_name, array $image_templates =
// convert to image
$img = Image::cache(function ($image) use ($file, $imageTemplate) {
/** @var \Intervention\Image\Image $image */
$image->make($file);
$image = $image->make($file)->orientate();

// resize
if (!$imageTemplate->isOriginal()) {
Expand Down Expand Up @@ -662,4 +662,4 @@ public static function getImageFromSomelineImageId($someline_image_id)
return $background_image;
}

}
}

0 comments on commit a0c9f55

Please sign in to comment.