SproutCMS

This is the code documentation for the SproutCMS project

function createDefaultSizes()

Create default image sizes as per the config parameter 'file.image_transformations'

The transformed files get saved onto the server.
If any of the transformations in a transform-group fails,
the whole group will fail and the file will not be saved.

Usage

void File::createDefaultSizes ( string $filename [, string $specific_size ] );

Arguments

  1. string $filename
    The file to create sizes for
  2. string $specific_size = NULL
    Optional parameter to process only a single size

Exceptions thrown

  • Exception

Return value

  • void