SproutCMS

This is the code documentation for the SproutCMS project

function resizeUrl()

Returns the relative URL for a dynamically resized image.

Size formatting is as per File::parseSizeString, e.g. c400x300

Usage

string File::resizeUrl ( int $id , string $size );

Arguments

  1. int $id
    ID or filename from record in files table
  2. string $size
    A code as per File::parseSizeString

Return value

  • string
    HTML-safe relative URL, e.g. file/resize/c400x300/123_example.jpg