Summary

This is a module that migrates the jQuery imageLens library for Drupal.

Configuration

The module has an admin interface (admin/config/user-interface/imagelens) where you can enable including of the JavaScript file each time to the site.
Otherwise you can include it manually via a simple function callback:

<?php
drupal_add_library('imagelens', 'imagelens');
?>

Usage

As a JS library

If you want, you can use it as a JavaScript library:
The html code:

<img id="test_img" height="250" src="location/my/full-size-imge.jpg" />

The JavaScript code:

jQuery("#test_img").imageLens();

For the full documentation visti the plugin's homepage.

As an image formatter

If you want, you can use it as a formatter for image module.

Go to ImageLens styles menu (admin/config/media/imagelens-styles) and add your styles. You can add the style's name, the weight and the height attributes. You can leave blank one of these attributes.
Go to the created image field's display section and choose the ImageLens format and select the style you want to display.

Project information

Releases