PHP Класс Sulu\Bundle\MediaBundle\Media\ImageConverter\MediaImageExtractor

Наследование: implements Sulu\Bundle\MediaBundle\Media\ImageConverter\MediaImageExtractorInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Imagine\Image\ImagineInterface $imagine, Sulu\Bundle\MediaBundle\Media\Video\VideoThumbnailServiceInterface $videoThumbnail, $ghostScriptPath )
extract ( $content )

Приватные методы

Метод Описание
convertPdfToImage ( string $content ) : string Converts the first page of pdf to an image using ghostscript.
convertPsdToImage ( string $content ) : string Converts a PSD to a png using imagine. Only works with Imagick and not with GD.
convertSvgToImage ( $content )
convertVideoToImage ( string $content ) : string Converts one frame of a video to an image using FFMPEG.
createTemporaryFile ( string $content ) : string Returns the path to a temporary file containing the given content.

Описание методов

__construct() публичный Метод

public __construct ( Imagine\Image\ImagineInterface $imagine, Sulu\Bundle\MediaBundle\Media\Video\VideoThumbnailServiceInterface $videoThumbnail, $ghostScriptPath )
$imagine Imagine\Image\ImagineInterface
$videoThumbnail Sulu\Bundle\MediaBundle\Media\Video\VideoThumbnailServiceInterface

extract() публичный Метод

public extract ( $content )