Plugin info

Total downloads: 1,956
Active installs: 10
Total reviews: 1
Average rating: 5
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 2/27/2017 (3276 days ago)
Added to WordPress: 1/21/2017 (9 years old)
Minimum WordPress version: 4.5.5
Tested up to WordPress version: 4.7.31
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 3276 days ago • 1 reviews

22/100

Is Sravnitel abandoned?

Possibly abandoned (last update 3276 days ago).

Compatibility

Requires WordPress: 4.5.5
Tested up to: 4.7.31
Requires PHP: f

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Twenty20 Image Before-After
Rating 4.0/5 (55 reviews)Active installs 30,000
Ultimate Before After Image Slider & Gallery – BEAF
Rating 4.9/5 (103 reviews)Active installs 30,000
Before After Image Comparison Slider for Elementor
Rating 4.4/5 (92 reviews)Active installs 10,000
BA Plus – Before & After Image Slider FREE
Rating 4.2/5 (11 reviews)Active installs 2,000
Before After Image Comparison Slider for WPBakery Page Builder
Rating 3.8/5 (23 reviews)Active installs 1,000
Beaf – Photo Comparison Block
Rating 4.0/5 (6 reviews)Active installs 1,000

Description

Sravnitel is a WordPress plugin by Elphel Inc. based on a jQuery plugin jquery.sravnitel.js.

Features

  • Compare 2+ images
  • Zoom and pan
  • Initial zoom and offset
  • Touch events: click, drag, pinch to zoom

Tips

  • Click on the view area to quickly switch between left and right image
  • Click on the zoom info in the top right to zoom-to-fit the view area
  • To place several instances of the plugin assign unique ids: [sravnitel id=’test1′ …], [sravnitel id=’test2′ …]

Working demo

Elphel’s Blog: Lapped MDCT-based image conditioning with optical aberrations correction, color conversion, edge emphasis and noise reduction

Quick examples

  • Fit image into the view window, w/o titles:
    [sravnitel images=”ID0,ID1,ID2″ width=640 height=480]
  • Fit image into the view window, with titles and toggle button:
    [sravnitel images=”ID0,ID1,ID2″ width=640 height=480 showtitles=true showtoggle=true]
  • Also fit image, with titles:
    [sravnitel images=”ID0,ID1,ID2″ width=640 height=480 showtitles=true zoom=0]
  • Zoom 30%, with titles, x=0 and y=0 in the center of the view window:
    [sravnitel images=’ID0,ID1,ID2′ width=640 height=480 showtitles=true zoom=0.3 center_x=0 center_y=0]

Shortcode Parameters

  • id – int – 0 – wrapper’s
    element id
  • images – str – ” – (required) list of images ids (attachment_id), comma separated
  • width – int – 530 – view window width px
  • height – int – 300 – view window height px
  • showtitles – bool – false – show/hide titles
  • showtoggle – bool – false – show/hide button – switch between left and right image
  • index_l – int – 0 – init, left image – is the index of the images array, starting from 0
  • index_r – int – 1 – init, right image – is the index of the images array, starting from 0
  • zoom – float – 0 – init, zoom, 0 – fit to view window, 1.0 – 100%
  • center_x – int – 0 – init, x coordinate of the original image to be placed in the center of the view window
  • center_y – int – 0 – init, y coordinate of the original image to be placed in the center of the view window

Installation

  1. Upload the plugin files to the /wp-content/plugins/sravnitel directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.

Frequently Asked Questions

How is it implemented?

Same as Twenty20 plugin – stacks two selected images so they are displayed as if one is lying on top of another. As the slider moves the compared images are displayed on the opposite sides of the divider.

Image titles are taken from description or title (if description is empty) of the attached image.

How to find the ID of the attached image?

It’s an integer number. Insert an image into a post and look for “wp-image-NN”. Or find the permalink of the attachment. Type in NNs into the plugin’s shortcode.

Examples

  • Fit image into the view window, w/o titles:
    [sravnitel id=”test” images=”ID0,ID1,ID2″ width=640 height=480]
  • Fit image into the view window, with titles and toggle button:
    [sravnitel images=”ID0,ID1,ID2″ width=640 height=480 showtitles=true showtoggle=true]
  • Also fit image, with titles:
    [sravnitel images=”ID0,ID1,ID2″ width=640 height=480 showtitles=true zoom=0]
  • Zoom 30%, with titles, x=0 and y=0 in the center of the view window:
    [sravnitel images=’ID0,ID1,ID2′ width=640 height=480 showtitles=true zoom=0.3 center_x=0 center_y=0]

Shortcode Parameters

  • id – int – 0 – wrapper’s <div> element id
  • images – str – ” – (required) list of images ids (attachment_id), comma separated
  • width – int – 530 – view window width px
  • height – int – 300 – view window height px
  • showtitles – bool – false – show/hide titles
  • showtoggle – bool – false – show/hide button – switch between left and right image
  • index_l – int – 0 – init, left image – is the index of the images array, starting from 0
  • index_r – int – 1 – init, right image – is the index of the images array, starting from 0
  • zoom – float – 0 – init, zoom, 0 – fit to view window, 1.0 – 100%
  • center_x – int – 0 – init, x coordinate of the original image to be placed in the center of the view window
  • center_y – int – 0 – init, y coordinate of the original image to be placed in the center of the view window

Review feed

No reviews available

Screenshots

  1. Working plugin

    Working plugin

  2. Shortcode

    Shortcode

  3. Description field in the attachment details

    Description field in the attachment details

Changelog

1.3

  • Allow more than one instance on the page
  • Set title table margin to 0px
  • Fixed [… showtitles=false …] showing titles
  • Added delayed images place updating due to drag event lagging.

1.2

  • Fixed view size when titles are disabled (showtitles=false)
  • Fixed divider containment area – offset() instead of position()

1.1

  • Fixed coordinates not rounding while dragging
  • Added single touch events by enabling ‘jquery-touch-punch’ in enqueue.php
  • Added multi touch – zoom by pinching (tested on Android)
  • Added a toggle button – to switch between images (hidden by default)
  • Changed handle look

1.0

  • Initial release.