Skip to content

Commit

Permalink
Merge pull request #17 from pravk/master
Browse files Browse the repository at this point in the history
S3 Image upload fix
  • Loading branch information
advoor authored Jun 15, 2019
2 parents 114ae2c + 088d55c commit b6f25e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Http/Controllers/EditorJsImageUploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ private function applyAlterations($path, $alterations = [])
if (!empty($alterations)) {
$imageSettings = $alterations;
}

if(empty($imageSettings))
return;

if (!empty($imageSettings['resize']['width'])) {
$image->width($imageSettings['resize']['width']);
Expand Down Expand Up @@ -187,4 +190,4 @@ private function applyThumbnails($path)

return $generatedThumbnails;
}
}
}

0 comments on commit b6f25e2

Please sign in to comment.