Skip to content

ImageTransformerInterface ​

Type
Interface
Namespace
craft\base\imagetransforms
Implemented by
craft\imagetransforms\FallbackTransformer, craft\imagetransforms\ImageTransformer
Since
4.0.0

TransformerInterface defines the common interface to be implemented by all image drivers.

View source

Public Methods ​

MethodDescription
getTransformUrl()Returns the URL for an image transform.
invalidateAssetTransforms()Invalidates all transforms for an asset.

getTransformUrl() ​

Returns the URL for an image transform.

View source

Arguments ​

Returns ​

string – The URL for the transform

Throws ​

invalidateAssetTransforms() ​

Invalidates all transforms for an asset.

View source

Arguments ​