SproutCMS

This is the code documentation for the SproutCMS project

function getResizeFilename()

For a given file, returns the filename to use to retrieve a resized version of the file

Usage

string File::getResizeFilename ( string $original , string $size_name [, string $force_ext ] );

Arguments

  1. string $original
    Original image name, e.g. 123_example.jpg
  2. string $size_name
    One of the 'file.image_transformations' config options, e.g. 'small'
  3. string $force_ext = NULL
    If set, extension is set to this

Return value

  • string
    Name of resized file, e.g. 123_example.small.jpg