...
Code Block | ||||
---|---|---|---|---|
| ||||
<ContentImageVariation media-type="application/vnd.ez.api.ContentImageVariation+xml" href="/api/ezp/v2/content/binary/images/240-1480/variations/tiny"> <uri>/var/ezdemo_site/storage/images/0/8/4/1/1480-1-eng-GB/kidding_tiny.png</uri> <contentType>image/png</contentType> <width>30</width> <height>30</height> <fileSize>1361</fileSize> </ContentImageVariation> |
From PHP code
Getting an image variation
The variation service, ezpublish.fieldType.ezimage.variation_service
, can be used to generate/get variations for a Field. It expects a VersionInfo, the Image Field and the variation name, as a string (large
, medium
...)
...