sconemad

technology, scones, nonsense

Loading...

Profiles

Twitter

GitHub

Launchpad

Subscribe to my RSS Feed

Admin

image

The image module provides powerful image manipulation capabilities for SconeSite.

SconeScript Interface

In addition to the standard module interface, it also has the following:

Methods

thumbnail ( article : Article, image : String, size : String )
Generate a thumbnail image, returning a suitable HTML img tag (and link to the original image).
Image size should be given as a string in the form "WIDTHxHEIGHT" (or "WIDTH" for a square), e.g. "320x200". The image will be scaled to fit within this rectangle, while preserving aspect ratio.
Example:
print(image.thumbnail(article,"an_image.jpg","128"));
Updated on 2010-07-26 13:43:00 +0000 | Requested on 2020-10-27 11:49:01 +0000