search

Typemill Plugins

figureSwipe - A Zoom for Images

The plugin allows you to zoom in the figures in the page and show them one after other like photo gallery. The text from the attribute alt of the figure is shown below or aside the picture.

Zoom and Swipe Images in Frontend

This is an example page of the Typemill documentation. The first image is large, so it's zoomed out, it's not possible to read the text on the image.

Screenshot of an image on the frontend page

Clicking on the figure, it zooms in and shows it on full page of browser. If the resolution of the image is larger than the window of browser, the second click zooms it to full resolution and it's possible to pan the image.

Screenshot of the image zoomed with figureswipe

Navigating on left or right arrow or swiping left and right you can show another figures of the page.

Screenshot with the buttons to swipe to the next image

Installation

Download the zip or clone the repository to your plugins directory of Typemill

cd <path_to_typemill>/plugins
git clone https://github.com/josefpavlik/typemill-plugin-figureswipe.git figureSwipe
cd figureSwipe
./prepare_libs

Typemill older than V2.13 needs a patch

Typemill before V2.13 needs a small patch to work with this plugin. Please update typemill to version 2.13 or above. If you want to use older versions of Typmill, you should apply the patch typemill.patch.

patch << typemill.patch

Activate the plugin

Go to the System page and select the Plugin on the left menu Search for the figureSwipe plugin and enable it

Screenshot: Activate the Plugin

That's all.

Insert a large image to page

The images must be inserted with full resolution (original size). The resolution of the image must be declared in attributes.

Click on the Image icon of the command bar

Screenshot: Button to insert an image in the Typemill editor

Drag image to the page or select an image from the media library.

Screenshot of the image upload component of Typemill

The width and height are precompiled to fixed (smaller values) by default (live version).

Screenshot: How to remove width and hight in the respective fields during upload

Now use the button "switch quality" and switch to the original-version of the image ( media/original/...). The width and height will be compiled with real size of the image.

If you want, compile the Caption (for the listing) and the Alt-text attribute for the text in zoom-in mode

Screenshot how to add alt and caption and do not resize checkbox

Click on "save".