typo3 7: PreviewImage of a Vimeo Video

What I wanted to do was create a video gallery with all vimeo videos. For that I needed a preview image for each videos. Interestingly enough Typo3 offers a VimeoHelper! This can easily be used in a viewHelper:

     * @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $video
     * @return string
    public function render($video) {
        $helper = new \TYPO3\CMS\Core\Resource\OnlineMedia\Helpers\VimeoHelper();
        $tmp = $helper->getPreviewImage($video->getOriginalResource()->getOriginalFile());
        return $tmp;


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.