class ImageInspector extends Inspector (View source)

An inspector to process image files.

Methods

inspect(Version $fv)

This method is called when a File\Version class refreshes its attributes.

bool
updateSize(Version $fv, ImageInterface $image)

Update the width and height attributes of the file version starting from the image data.

Details

inspect(Version $fv)

This method is called when a File\Version class refreshes its attributes.

This can be used to update the File\Version attributes as well as its contents.

Parameters

Version $fv

See also

Inspector::inspect

private bool updateSize(Version $fv, ImageInterface $image)

Update the width and height attributes of the file version starting from the image data.

Parameters

Version $fv
ImageInterface $image

Return Value

bool

true if success, false otherwise