The Emergent Properties of Meat
Blog
Software
Hardware
About me
Photography
 Logos
Bigger projects: emc2 & AXIS
Friends' pages:
Alex
Bill
Chris
Jon
Michael
Email me: jepler@unpy.net

« Inter-entry links for Æther | Newest entries in software | Controlling EMC with a joystick »


This icon indicates that the image can be zoomed
Adds a family of markup functions for floating images with thumbnails. It also replaces [image] to include the image's size. This module requires PIL, which is used to find the size of images.

Usage: In _code.py, add the line from thumbs import *. Change the zoom_image URL to match your local configuration.

Use these new markup elements: [rightthumb], [leftthumb], [rightimage], [leftimage] and [clear].

Each one takes a [caption], and the thumbnail versions take a [thumbext]. All images are assumed to be attached to the current page.

The thumbnail has the same basename as the full-size image with -small appended. If [thumbext] is specified (with leading dot, as in [thumbext .jpg]), that is the extension of the thumbnail. Otherwise, it is the same as the full-size image.

The markup [clear] with an optional argument of left or right makes the text following it appear below any floating images that are earlier in the file.

Files currently attached to this page:

thumbs.py5.6kB
zoom.png237 bytes



Entry first conceived on 16 June 2005, 0:20 UTC, last modified on 1 October 2005, 16:53 UTC



Powered by the Emergent Properties of Meat. Copyright © 2004-2008 Jeff Epler
[æ]