SproutCMS

This is the code documentation for the SproutCMS project

function calcResizeDims()

Calculates dimensions to be generated by a resize

Usage

array $Image->calcResizeDims ( int $width , int $height , int $master );

Arguments

  1. int $width
    Width in pixels
  2. int $height
    Height in pixels
  3. int $master
    Master dimension, e.g. Image::HEIGHT for a portrait image,
           Image::AUTO for any kind of image

Return value

  • array
    [0 => width, 1 => height]