Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add info.magnolia.templating.imaging javadoc macros

...

imaging

optional

Image variations for the various renditions of an image on the page.

class

required

VariationAwareImagingSupport (Git)

Javadoc resource link
rangeHigherVersion1.1
classNameinfo.magnolia.templating.imaging.VariationAwareImagingSupport
renderTypeasynchronous
provides support for variations.

enabled

optional

Enables and disables variation support.

variations

required

Map of image variations.

<variation‑name>

required

The name of the variation, a.k.a the rendition name. Choose a name that describes the variation. The name is used in template scripts to reference the variation. Add one node for every variation.

class

required

You can use one of the available classes or create a custom one. The available properties depend on the class used for the variation. Any custom class must implement 

Javadoc resource link
rangeHigherVersion3.3
classNameinfo.magnolia.imaging.variation.Variation
renderTypeasynchronous
.

Magnolia Templating Essentials module provides:

  • Javadoc resource link
    rangeHigherVersion1.1
    className
    SimpleResizeVariation (Git)
    info.magnolia.templating.imaging.SimpleResizeVariation
    renderTypeasynchronous
    that resizes images to a defined size in pixels (see below for available properties).
  • Javadoc resource link
    rangeHigherVersion1.1
    className
    ImageOperationProvidingVariation (Git)
    info.magnolia.templating.imaging.ImageOperationProvidingVariation
    renderTypeasynchronous
    that allows you to create your own image operation chain using the mte image generator.

<properties>

Add properties that are supported by the class used.