PHP 클래스 Neos\Media\Domain\Service\ImageService

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$assetRepository Neos\Media\Domain\Repository\AssetRepository
$environment Neos\Flow\Utility\Environment
$imageSizeCache Neos\Cache\Frontend\VariableFrontend
$imagineService Imagine\Image\ImagineInterface
$resourceManager Neos\Flow\ResourceManagement\ResourceManager
$settings array

공개 메소드들

메소드 설명
getImageSize ( PersistentResource $resource ) : array Get the size of a Flow PersistentResource that contains an image file.
injectSettings ( array $settings ) : void
processImage ( PersistentResource $originalResource, array $adjustments ) : array

보호된 메소드들

메소드 설명
applyAdjustments ( Imagine\Image\ImageInterface $image, array $adjustments, boolean &$adjustmentsApplied ) : Imagine\Image\ImageInterface
getOptionsMergedWithDefaults ( array $additionalOptions = [] ) : array
isAnimatedGif ( string $image ) : boolean Detects whether the given GIF image data contains more than one frame

메소드 상세

applyAdjustments() 보호된 메소드

protected applyAdjustments ( Imagine\Image\ImageInterface $image, array $adjustments, boolean &$adjustmentsApplied ) : Imagine\Image\ImageInterface
$image Imagine\Image\ImageInterface
$adjustments array Ordered list of adjustments to apply.
$adjustmentsApplied boolean Reference to a variable that will hold information if an adjustment was actually applied.
리턴 Imagine\Image\ImageInterface

getImageSize() 공개 메소드

Get the size of a Flow PersistentResource that contains an image file.
public getImageSize ( PersistentResource $resource ) : array
$resource Neos\Flow\ResourceManagement\PersistentResource
리턴 array width and height as keys

getOptionsMergedWithDefaults() 보호된 메소드

protected getOptionsMergedWithDefaults ( array $additionalOptions = [] ) : array
$additionalOptions array
리턴 array

injectSettings() 공개 메소드

public injectSettings ( array $settings ) : void
$settings array
리턴 void

isAnimatedGif() 보호된 메소드

Detects whether the given GIF image data contains more than one frame
protected isAnimatedGif ( string $image ) : boolean
$image string string containing the binary GIF data
리턴 boolean true if gif contains more than one frame

processImage() 공개 메소드

public processImage ( PersistentResource $originalResource, array $adjustments ) : array
$originalResource Neos\Flow\ResourceManagement\PersistentResource
$adjustments array
리턴 array resource, width, height as keys

프로퍼티 상세

$assetRepository 보호되어 있는 프로퍼티

protected AssetRepository,Neos\Media\Domain\Repository $assetRepository
리턴 Neos\Media\Domain\Repository\AssetRepository

$environment 보호되어 있는 프로퍼티

protected Environment,Neos\Flow\Utility $environment
리턴 Neos\Flow\Utility\Environment

$imageSizeCache 보호되어 있는 프로퍼티

protected VariableFrontend,Neos\Cache\Frontend $imageSizeCache
리턴 Neos\Cache\Frontend\VariableFrontend

$imagineService 보호되어 있는 프로퍼티

protected ImagineInterface,Imagine\Image $imagineService
리턴 Imagine\Image\ImagineInterface

$resourceManager 보호되어 있는 프로퍼티

protected ResourceManager,Neos\Flow\ResourceManagement $resourceManager
리턴 Neos\Flow\ResourceManagement\ResourceManager

$settings 보호되어 있는 프로퍼티

protected array $settings
리턴 array