Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Commit

Permalink
Switch to fit() for image resizing as it retains aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
TheReverend403 committed Jul 3, 2016
1 parent 4a1da9c commit 2d80ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function post(Request $request)
try {
$upload->createDirs();
$img->backup();
$img->resize(128, 128)->save($upload->getThumbnailPath(true));
$img->fit(128, 128)->save($upload->getThumbnailPath(true));
$img->reset();

if (Helpers::shouldStripExif($uploadedFile)) {
Expand Down

0 comments on commit 2d80ca3

Please sign in to comment.