mdo:thumbnail ( path, max-width, max-height )

Creates a thumbnail and returns virtual path to it (can be used at src attribute).
  • path - relative path to the source image.
  • max-width - maximum (preferred) width of the thumbnail.
  • max-height - maximum (preferred) height of the thumbnail.
mdo:thumbnail creates a thumbnail with the aspect ratio of the source image. The width or height of thumbnail is equal to max-width or max-height.

It is safe to call this extension each time you need to show thumbnail. It first checks if thumbnail exists and doesn't recreate it.

Last edited Nov 21, 2009 at 6:19 PM by findy, version 1

Comments

No comments yet.