Administration

Block duf/thumbnail

class B_duf__thumbnail extends \Cascade\Core\Block

Description

Generate a thumbnail. This block should be used in conjuction with image
lists and thumbnail views, which shall reference URL with this thumbnail
generator. Use core/send_file template to show this thumbnail.

Inputs

InputDefault valueDefault connectionComment
filenamenullOther inputs are used as parameters.
width512Target size.
height512Target size.
resize_mode'fit'One of: 'fit', 'fill', 'same_height'
*null

Outputs

OutputComment
thumbnail_file
done

Cascade