wf-core:image

This tag will create an img element with appropriate image representation.

Syntax
<wf-core:image
   alt="..."?
   article="..."?
   articleId="..."?
   articleTypeName="..."?
   aspectVariant="..."?
   imagePolicy="..."?
   onClick="..."?
   preload="..."?
   scale="..."?
   styleClass="..."?
   title="..."?
   width="..."?/>
Attributes
articleId

An article id identifying the image content item to be displayed. The id can be supplied as anint, Integer orString.

article

Aneo.xredsys.presentation.PresentationArticle: the content item representing the image to be displayed.

width

The width value to be used if imagePolicy is set to grid. If you specify both width andscale, then scale takes priority.

alt

If specified,sets the alt attribute of the generated img element. By default the alt attribute is taken from the source content item.

title

If specified,sets the title attribute of the generated img element. By default the title attribute is taken from the source content item.

scale

The image width specified as a percentage of the available space (that is, the width of the image's enclosing element).

articleTypeName

Deprecated. The type of the article.

styleClass

The name of a CSS style (HTML class attribute) to be assigned to the generated HTML img tag.

onClick

Deprecated. The onclick handler of the image.

imagePolicy

Specify adaptive or picturefill to enable responsive image selection or grid to disable it. If this attribute is not specified, the value is taken from image.policy content profile section parameter.

aspectVariant

Specifies the required image aspect. The allowed options arePORTRAIT,LANDSCAPE, SQUARE orFREE. If no value is specified, then a default of LANDSCAPE is used. (This default can be changed by setting the defaultAspectVariant property in com/escenic/framework/cache/ImageRepresentationCacheManager.properties.

preload

Specify placeholder or proxy, if you wants the image tag to load some placeholder or proxy images initially. Otherwise set none to disable preloading. If this attribute is not specified, the value is taken from image.preload content profile section parameter.