Image Version rep:representation

Contains the parameters needed to define an "image-version"-style image representation.

This element belongs to the http://xmlns.escenic.com/2009/representations namespace. The conventional prefix for this namespace is rep.

Syntax
<rep:representation
    name="NCName"
  >
  ANY-FOREIGN-ELEMENT*?
  <rep:output/>
  
  <rep:crop/>
  
  <rep:resize/>
</rep:representation>

Only one form of the rep:output element may be used: Image Version rep:output.

Examples
  • This example shows how representation elements are used in basic fields to define image crop masks.

    <field mime-type="application/json" type="basic" name="representations">
      <ui:label>Image Versions</ui:label>
      <rep:representations type="image-versions">
        <rep:representation name="thumbnail">
          <rep:output width="100" height="100"/>
          <rep:crop/>
          <rep:resize/>
        </rep:representation>
        <rep:representation name="narrow">
          <rep:output width="500" height="400"/>
          <rep:crop/>
          <rep:resize/>
        </rep:representation>
        <rep:representation name="wide">
          <rep:output width="1000" height="800"/>
          <rep:crop/>
          <rep:resize/>
        </rep:representation>
      </rep:representations>
    </field>
Attributes
name="NCName"

The name of the representation element.