{{ include('includes/content-headline.html.twig') }} {# this is just used for demonstration #} {% set image = pimcore_image('image').getImage() ?: pimcore_asset(341) %}

{{ 'Original Dimensions of the Image:'|trans }} {{ image.width }} x {{ image.height }}

{{ pimcore_image('image', { thumbnail: 'content', imgAttributes: {class: 'img-responsive'}}) }}
{% set thumbnails = { 'Cover': 'exampleCover', 'Contain': 'exampleContain', 'Frame': 'exampleFrame', 'Rotate': 'exampleRotate', 'Resize': 'exampleResize', 'Scale by Width': 'exampleScaleWidth', 'Scale by Height': 'exampleScaleHeight', 'Contain & Overlay': 'exampleOverlay', 'Rounded Corners': 'exampleCorners', 'Colors': 'exampleColor', 'Sepia': 'exampleSepia', 'Grayscale': 'exampleGrayscale', 'Mask': 'exampleMask', 'Combined 1': 'exampleCombined1', 'Combined 2': 'exampleCombined2' } %}
{% for title, name in thumbnails %} {% if loop.index0 % 3 == 0 %}
{% endif %}
{% set thumbnail = image.getThumbnail(name) %}
{{ thumbnail.getHTML()|raw }}
{{ title|trans }}
{{ 'Dimensions:'|trans }} {{ thumbnail.width }} x {{ thumbnail.height }}
{% if loop.last or ((loop.index0 + 1) % 3 == 0) %}
{% endif %} {% endfor %}