diff --git a/src/Http/Controllers/VoyagerController.php b/src/Http/Controllers/VoyagerController.php index 1f7e6852a7..0567488613 100644 --- a/src/Http/Controllers/VoyagerController.php +++ b/src/Http/Controllers/VoyagerController.php @@ -51,8 +51,11 @@ public function upload(Request $request) ->resize($resizeWidth, $resizeHeight, function (Constraint $constraint) { $constraint->aspectRatio(); $constraint->upsize(); - }) - ->encode($file->getClientOriginalExtension(), 75); + }); + if ($ext !== 'gif') { + $image->orientate(); + } + $image->encode($file->getClientOriginalExtension(), 75); // move uploaded file from temp to uploads directory if (Storage::disk(config('voyager.storage.disk'))->put($fullPath, (string) $image, 'public')) {