We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c86283 + 12c0c90 commit 9112c21Copy full SHA for 9112c21
src/controllers/UploadController.php
@@ -47,7 +47,11 @@ public function upload()
47
return Lang::get('laravel-filemanager::lfm.error-file-exist');
48
}
49
50
- $file->move($dest_path, $new_filename);
+ //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);
55
56
if ('Images' === $this->file_type) {
57
$this->makeThumb($dest_path, $new_filename);
0 commit comments