Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Image Comparison Slider Formatter

No security coverage Under active development 2 sites

This module provides a new display formatter for image fields that uses a JavaScript library to create interactive image comparison sliders. This allows users to slide between two images to see the differences.

This module provides a new formatter for image field using the Image Comparison Slider javascript library.

Installation

  • Download and enable the module.
  • Download the Image Comparison Slider library using the npm pack img-comparison-slider command and extract it to /libraries directory, correct path for the javascript file should be /libraries/img-comparison-slider/dist/index.js.
    If you are using composer, the Image Comparison Slider library can be automatically installed using the composer.libraries.json file, you can also install it manually by running the following command: composer require npm-asset/img-comparison-slider
  • Select Image Comparison Slider formatter in your multivalued
    image field display configuration.
  • Remember that you have to upload at least 2 images.

A dedicated submodule, Image Comparison Slider for Media, allows you to use ICS with medias of type Image (or referencing other medias of type Image via this module).

Alternative modules

Ask your assistant about Image Comparison Slider Formatter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta1 Pre-release 10 Apr 30, 2024
1.0.0-alpha4 Pre-release 10 Apr 29, 2024
1.0.0-alpha3 Pre-release 10 Apr 28, 2024
1.0.0-alpha2 Pre-release 10 Apr 28, 2024
1.0.0-alpha1 Pre-release 10 Apr 27, 2024
1.0.x-dev Dev 10–11 Apr 27, 2024