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