src/Processor.php
public function rebuild($fileName, $context, FilesystemAdapter $filesystemAdapter)
    {
        // Open original file
        $originalImage = $filesystemAdapter->get('/' . $context . '/' . $fileName);
        $originalImage = $this->openImageHandler->loadImage($originalImage);
        $extension = $this->findExtension($fileName);

        // Rebuild sizes
        $this->deleteSizes($fileName, $context, $filesystemAdapter);
        $this->fileManager->setFileSystemAdapter($filesystemAdapter);
        $this->processSizes($originalImage, $fileName, $context, $extension, $filesystemAdapter);

        return true;
    }
public function rebuild($fileName, $context, FilesystemAdapter $filesystemAdapter)
    {
        // Open original file
        $originalImage = $filesystemAdapter->get('/' . $context . '/' . $fileName);
        $originalImage = $this->openImageHandler->loadImage($originalImage);
        $extension = $this->findExtension($fileName);

        // Rebuild sizes
        $this->deleteSizes($fileName, $context, $filesystemAdapter);
        $this->fileManager->setFileSystemAdapter($filesystemAdapter);
        $this->processSizes($originalImage, $fileName, $context, $extension, $filesystemAdapter);

        return true;
    }
public function rebuild ( $ fileName , $ context , FilesystemAdapter $ filesystemAdapter ) { // Open original file $ originalImage = $ filesystemAdapter -> get ( '/' . $ context . '/' . $ fileName ) ; $ originalImage = $ this -> openImageHandler -> loadImage ( $ originalImage ) ; $ extension = $ this -> findExtension ( $ fileName ) ; // Rebuild sizes $ this -> deleteSizes ( $ fileName , $ context , $ filesystemAdapter ) ; $ this -> fileManager -> setFileSystemAdapter ( $ filesystemAdapter ) ; $ this -> processSizes ( $ originalImage , $ fileName , $ context , $ extension , $ filesystemAdapter ) ; return true ; }
Rebuilds image sizes

@param string $fileName
@param string $context
@param FilesystemAdapter $filesystemAdapter

@return bool
@throws \Illuminate\Contracts\Filesystem\FileNotFoundException
Rebuilds image sizes