Neos.Media/Classes/Controller/ThumbnailController.php
public function thumbnailAction(Thumbnail $thumbnail)
    {
        if ($thumbnail->getResource() === null && $thumbnail->getStaticResource() === null) {
            $this->thumbnailService->refreshThumbnail($thumbnail);
        }
        $this->redirectToUri($this->thumbnailService->getUriForThumbnail($thumbnail), 0, 302);
    }
public function thumbnailAction(Thumbnail $thumbnail)
    {
        if ($thumbnail->getResource() === null && $thumbnail->getStaticResource() === null) {
            $this->thumbnailService->refreshThumbnail($thumbnail);
        }
        $this->redirectToUri($this->thumbnailService->getUriForThumbnail($thumbnail), 0, 302);
    }
public function thumbnailAction ( Thumbnail $ thumbnail ) { if ( $ thumbnail -> getResource ( ) === null && $ thumbnail -> getStaticResource ( ) === null ) { $ this -> thumbnailService -> refreshThumbnail ( $ thumbnail ) ; } $ this -> redirectToUri ( $ this -> thumbnailService -> getUriForThumbnail ( $ thumbnail ) , 0 , 302 ) ; }
Generate thumbnail and redirect to resource URI

@param Thumbnail $thumbnail
@return void
@throws StopActionException
@throws UnsupportedRequestTypeException
@throws ThumbnailServiceException
Generate thumbnail and redirect to resource URI