Skip to content

Commit 9112c21

Browse files
authored
Merge pull request #143 from blenderdeluxe/master
Changed apply exif data orientation
2 parents 5c86283 + 12c0c90 commit 9112c21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/controllers/UploadController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ public function upload()
4747
return Lang::get('laravel-filemanager::lfm.error-file-exist');
4848
}
4949

50-
$file->move($dest_path, $new_filename);
50+
//Apply orientation from exif data
51+
$img = Image::make($file->getRealPath())->orientate();
52+
$upload = $img->save($dest_path . $new_filename, 90);
53+
54+
//$file->move($dest_path, $new_filename);
5155

5256
if ('Images' === $this->file_type) {
5357
$this->makeThumb($dest_path, $new_filename);

0 commit comments

Comments
 (0)