Newscoop\Storage\StorageService::moveThumbnail PHP Method

moveThumbnail() public method

Move given thumbnail into new location
public moveThumbnail ( string $path ) : string
$path string
return string
    public function moveThumbnail($path)
    {
        return $this->moveFile($path, 'images/thumbnails');
    }

Usage Example

 /**
  * Update single image storage
  *
  * @param Newscoop\Image\LocalImage $image
  * @return void
  */
 private function updateImage(LocalImage $image)
 {
     $image->updateStorage($this->storage->moveImage($image->getPath()), $this->storage->moveThumbnail($image->getThumbnailPath()));
 }