class Image (View source)

The Image object represents a resized (and cropped) copy of a given image.

Properties

$originalWidth The width of the source image.
$originalHeight The height of the source image.
$file The filename of generated image.
$width The width of the generated image.
$height The height of the generated image.

Methods

__construct(string $originalFile = false, integer $requestedWidth = false, integer $requestedHeight = false, boolean $crop = false)

The constructor defines the main object properties from the given parameters and initiates the main methods.

Details

__construct(string $originalFile = false, integer $requestedWidth = false, integer $requestedHeight = false, boolean $crop = false)

The constructor defines the main object properties from the given parameters and initiates the main methods.

Parameters

string $originalFile
integer $requestedWidth
integer $requestedHeight
boolean $crop