Snipscale

Snipscale macro package

This SnipSnap macro package makes it easy to create photo albums in SnipSnap.

scaled-image

This macro displays one or more attached images or images in an attached zip file. It can scale the image, provide a thumbnail and caption.

scaled-album

This macro is a shortcut to display one or more floating images inside a div. The images can, just as the scaled-image macro, be scaled.

scaled-image-settings

The scaled-image-settings macro allows you to set common parameters for all scaled-image and scaled-album macros following it.

image-container

The image-container macro puts the nested images inside a div block (with class image-container).

Installation

Requirements

  • JDK 1.4

Headless server

The scaled-image macro makes use of some Java graphics functions, which have been introduced into JDK 1.4. Normally these functions assume a connection to a display. When you run snipsnap on a server, you may get an error message that it cannot connect to a display.

You can make it work by adding the following property option to the startup script of the web container you are using:

-Djava.awt.headless=true

For tomcat, you can edit catalina.sh and add this line somewhere in the beginning of the file:

CATALINA_OPTS=-Djava.awt.headless=true