Image Orientation in PHP How to fixed Correct Orientation rotate image problem . Solution:- public function imageOrientaionUpload(Request $request) { $publicPath = public_path('uploads_directory/'); if($request->file('imgFile') == null) { echo 'No File Exist'; } $file = $request->file('imgFile'); // generating unique name for uploaded file $uniq = uniqid().time(); $uploadFile = $uniq.'.'.$file->getClientOriginalExtension(); // getting file path $filePath = $file->getPathName(); // image rotation code in php starts here $exif = @exif_read_data($filePath); if(isset($exif['Orientation'])) { $orientation = $exif['Orientation'...
Laravel Document