Details
-
Bug
-
Resolution: Obsolete
-
High
-
3.3.37
-
Ibexa Open Source
-
Yes
Description
Steps to reproduce:
- Add Image content with an image of the .avif type extension.
- Add the following SA configuration:
content_view: full: article: template: '@ezdesign/full/image.html.twig' match: Identifier\ContentType: image
- Create a new .twig file with the following path: templates/themes/standard/full/image.html.twig
and with the following content:{{ ez_render_field(content, 'image', { 'template': 'fields/image.html.twig' }) }}
- Create another .twig file with the following path: templates/fields/image.html.twig
and with the following content:{% block ezimage_field %} {% set imageAlias = ez_image_alias( field, versionInfo, 'small' ) %} {% set src = imageAlias ? asset( imageAlias.uri ) : "//:0" %} <div style="background: url({{ src }}); width: 100vh; height: 20vh"></div> {% endblock %}
- Open the image content from step 1. on frontend.
Result:
One is presented with an exception:
An exception has been thrown during the rendering of a template ("An image could not be created from the given input") in "fields/image.html.twig".
Expected result:
The image should be rendered properly, just like it's done for other images with different than .avif extensions.