PHP 인터페이스 Neos\Media\Domain\Model\ThumbnailSupportInterface

파일 보기 프로젝트 열기: neos/neos-development-collection

공개 메소드들

메소드 설명
addThumbnail ( Thumbnail $thumbnail ) : mixed Adds a thumbnail which was generated by the ThumbnailService.
getThumbnail ( integer $maximumWidth = null, integer $maximumHeight = null, string $ratioMode = ImageInterface::RATIOMODE_INSET, boolean $allowUpScaling = null ) : Thumbnail Returns a thumbnail of this model

메소드 상세

addThumbnail() 공개 메소드

Adds a thumbnail which was generated by the ThumbnailService.
또한 보기: getThumbnail()
public addThumbnail ( Thumbnail $thumbnail ) : mixed
$thumbnail Thumbnail
리턴 mixed

getThumbnail() 공개 메소드

If the maximum width / height is not specified or exceeds the original asset's dimensions, the width / height of the original asset is used.
public getThumbnail ( integer $maximumWidth = null, integer $maximumHeight = null, string $ratioMode = ImageInterface::RATIOMODE_INSET, boolean $allowUpScaling = null ) : Thumbnail
$maximumWidth integer The thumbnail's maximum width in pixels
$maximumHeight integer The thumbnail's maximum height in pixels
$ratioMode string Whether the resulting image should be cropped if both edge's sizes are supplied that would hurt the aspect ratio
$allowUpScaling boolean Whether the resulting image should be upscaled
리턴 Thumbnail