Page tree
Skip to end of metadata
Go to start of metadata
Node nameValue

 my-theme

 

 imaging

 

 variations

 

 small-square

 

  class

info.magnolia.templating.imaging.variation.SimpleResizeVariation

 height

150

  width

150

 crop 

true

  thumbnail

 

  class

info.magnolia.templating.imaging.variation.SimpleResizeVariation

  height

200

 medium

 

  class

info.magnolia.templating.imaging.variation.SimpleResizeVariation

 width

500

  class

info.magnolia.templating.imaging.VariationAwareImagingSupport

Properties:

imaging

optional

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

class

required

VariationAwareImagingSupport (Git) 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 Variation.

Magnolia Templating Essentials module provides:

  • SimpleResizeVariation (Git) that resizes images to a defined size in pixels (see below for available properties).
  • ImageOperationProvidingVariation (Git) 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.
  • No labels