pull/587/head
Daniel Supernault 6 years ago
parent 580bfd0bbe
commit a14532e715
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save