Extension:ImageCompare/de-formal

This page is a translated version of the page Extension:ImageCompare and the translation is 6% complete.
MediaWiki extensions manual
ImageCompare
Release status: unmaintained
Implementation Tag
Description Adds a tag to interactively compare two images using a slider
Author(s) Leduyquang03Diskussion
Latest version 0.0.3 (2018-12-11)
MediaWiki 1.29+
PHP Any
Database changes No
License MIT License
Download
imgcomp
Quarterly downloads 2 (Ranked 142nd)
Translate the ImageCompare extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

This extension adds the ‎<imgcomp> tag which displays an interactive slider for comparing two images side by side.

Installation

  • Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens ImageCompare im Ordner extensions/ ablegen.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageCompare
  • Folgenden Code am Ende Ihrer LocalSettings.php -Datei hinzufügen:
    wfLoadExtension( 'ImageCompare' );
    
  •   Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.

Usage

To add two images to compare, use the ‎<imgcomp> tag with these attributes (bold ones are required):

  • img1: The title of the image to the left ("before").
  • img2: The title of the image to the right ("after").
  • width: A number specifying the width for compared images in pixels.

By default, images are added with their highest resolution.

  • mobilewidth: A number specifying the width of the images for the mobile version, also in pixels. If not specified, it will be 320 or the specified width if it is smaller.

The titles must not have the File: namespace. The inner content of the tag will be ignored.

Ideally, the two images should have the same width and height.

Examples

To compare JPEG example.jpg with PNG example.png:

<imgcomp img1='JPEG example.jpg' img2='PNG example.png' />

To compare Draft.png and Colored.png, with each image having the width of 400px:

<imgcomp img1='Draft.png' img2='Colored.png' width=400 />