Files


$image Methods

  • $image->size($width, $height, $options)

    Return a new $image with the given dimensions. By default it will get upscaled and center cropped with a quality of 90%. To resize and keep proportions you can 0 for height or width value. As third argument you can pass an array to overwrite the default settings: $defaultOptions = array( 'upscaling' => true, 'cropping' => true, 'quality' => 90 );

  • $image->width($width)

    Return a new $image with the given width (proportional height, center crop)

  • $image->height($height)

    Return a new $image with the given height (proportional width, center crop)

  • $image->getVariations()

    Returns a WireArray (Pageimages) of all size variations of this image

  • $image->removeVariations()

    Deletes all size variations of this image (be careful)