|
|
@ -112,7 +112,9 @@ class Image
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$img = Intervention::make($file)->orientate();
|
|
|
|
$img = Intervention::make($file)->orientate();
|
|
|
|
if($thumbnail) {
|
|
|
|
if($thumbnail) {
|
|
|
|
$img->crop($aspect['width'], $aspect['height']);
|
|
|
|
$img->resize($aspect['width'], $aspect['height'], function ($constraint) {
|
|
|
|
|
|
|
|
$constraint->aspectRatio();
|
|
|
|
|
|
|
|
});
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$metadata = $img->exif();
|
|
|
|
$metadata = $img->exif();
|
|
|
|
$img->resize($aspect['width'], $aspect['height'], function ($constraint) {
|
|
|
|
$img->resize($aspect['width'], $aspect['height'], function ($constraint) {
|
|
|
|