Zoomify
This module integrates the Zoomify applet into Drupal. Zoomify is a Flash applet that displays large images by allowing to pan and zoom into them. Images are first preprocessed in order for Zoomify to work.
The integration into Drupal is done by detecting images within nodes. When the module detects that a new image has a resolution larger than some specified size (in Zoomify settings), it invokes the preprocessing script that cuts up the image into tiles. It also adds a tab to the node that displays a new page containing the Zoomify Flash viewer.
The following image types are currently handled:
* Image nodes
* Nodes using CCK ImageField (including ImageCache formatters)
INSTALLATION
After unpacking the zoomify module, download the latest Flash Zoomify Viewer component (available in the Zoomify Express package) and copy the extracted ZoomifyViewer.swf file to the module's folder. You can then make sure you point to the right file in Zoomify settings.
In order to create the tiled images, you have the choice of using the bundled PHP processing script or a more robust Python backend.
* The PHP preprocessing script was derived from work by Wes Wright and published by Justin Henry.
* For the Python backend, download ZoomifyImage and extract it anywhere on your server. Then point to it in Zoomify settings. You need Python installed, as well as the Python Image Library (PIL) package.
FAQ
Q. How can I set Zoomify to be the default image display in my node type?
A. Override the node theme. For example, to override the Image content type, you would create a node-image.tpl.php file in your theme with the following:
<?php
if (zoomify_load($node->nid)) {
print $node->content['body']['#value'];
print zoomify_display($node);
}
else {
print $content;
}
?>Make sure to turn off the option "Show tab" in the Zoomify settings. Thanks to chawl for contributing this tip.
EXTENDABILITY
The module can be extended for other types of image-bearing modules through hook_images($node) that returns an array($fid => $filepath) of files found in the given node. Refer to zoomify_image.module for an example.
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.2 | 2009-May-11 | 16.43 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-2.1 | 2009-Jan-06 | 15.35 KB | Download · Release notes | Recommended for 5.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.x-dev | 2009-Jul-05 | 17.96 KB | Download · Release notes | Development snapshot | |
| 5.x-2.x-dev | 2009-Jan-01 | 15.34 KB | Download · Release notes | Development snapshot | |
