src/Icr.php
public static function renameImage($oldFileName, $newFileName, $context, $storage = 'local')
    {
        /** @var FilesystemAdapter $filesystemAdapter */
        $filesystemAdapter = Facades\Storage::disk($storage);
        /** @var Processor $processor */
        $processor = app('icr.processor');

        return $processor->rename($oldFileName, $newFileName, $context, $filesystemAdapter);
    }
public static function renameImage($oldFileName, $newFileName, $context, $storage = 'local')
    {
        /** @var FilesystemAdapter $filesystemAdapter */
        $filesystemAdapter = Facades\Storage::disk($storage);
        /** @var Processor $processor */
        $processor = app('icr.processor');

        return $processor->rename($oldFileName, $newFileName, $context, $filesystemAdapter);
    }
public static function renameImage ( $ oldFileName , $ newFileName , $ context , $ storage = 'local' ) { /** @var FilesystemAdapter $filesystemAdapter */ $ filesystemAdapter = Facades \ Storage :: disk ( $ storage ) ; /** @var Processor $processor */ $ processor = app ( 'icr.processor' ) ; return $ processor -> rename ( $ oldFileName , $ newFileName , $ context , $ filesystemAdapter ) ; }
Renames existing image

@param string $oldFileName
@param string $newFileName
@param string $context
@param string $storage

@return boolean
Renames existing image