PHP 클래스 Sulu\Bundle\MediaBundle\Media\ImageConverter\MediaImageExtractor

상속: implements Sulu\Bundle\MediaBundle\Media\ImageConverter\MediaImageExtractorInterface
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__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 )