src/Support/Image/OrientationFixer.php
public function fixFile(SplFileInfo $file)
    {
        $filePath = $file->getRealPath();

        $image = $this->imagine->open($file->getRealPath());

        $image = $this->fixImage($filePath, $image);
        $image->save();

        return true;
    }
public function fixFile(SplFileInfo $file)
    {
        $filePath = $file->getRealPath();

        $image = $this->imagine->open($file->getRealPath());

        $image = $this->fixImage($filePath, $image);
        $image->save();

        return true;
    }
public function fixFile ( SplFileInfo $ file ) { $ filePath = $ file -> getRealPath ( ) ; $ image = $ this -> imagine -> open ( $ file -> getRealPath ( ) ) ; $ image = $ this -> fixImage ( $ filePath , $ image ) ; $ image -> save ( ) ; return true ; }
Fixes the orientation in a local file.

This overwrites the current file.

@param SplFileInfo $file
@return bool
@throws ErrorException
Fixes the orientation in a local file .