ImageInspector
class ImageInspector extends Inspector (View source)
An inspector to process image files.
Methods
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.
private bool
updateSize(Version $fv, ImageInterface $image)
Update the width and height attributes of the file version starting from the image data.