Details
Description
Currently, our platform does not support any settings from liip_imagine, except probably filter_sets, if we give liip_imagine.filter_sets the same name as we have in ibexa.system.<scope>.image_variations, all settings will be combined into one and used.
ibexa_image_alias should point to a file with the webp extension if that format has been set in filter_sets or default_filter_set_settings.
If we set a new file with the webp extension to be generated, then it should work as imagine_filter, i.e. if the browser supports this format, the file with the webp extension should be used, if not, the original extension should be used.
If this option is not possible, we should add information to our documentation about which settings are supported and which are not.
3 points should be reached:
- use '.webp' extension in generated image variation files when format: webp
- use all settings from 'liip_imagine.default_filter_set_settings' as 'basis' for all image variations
- implement 'Use WebP if supported' feature (so that for non-web images 2 files are generated)
Steps to reproduce:
- Install Ibex DXP
- Configure variations (https://symfony.com/bundles/LiipImagineBundle/current/basic-usage.html#webp-for-all) or
lip_imagine:
# configure webp
web:
generate: true
- Create Content type with an image
- Try to use any variation on the image field
Result:
Webp is not generated (it does not replace the generated image) nor is a new webp file generated
Expected:
Webp is generated according to liip_imagine.default_filter_set_settings with the original extension or if webp generation is selected and the browser supports webp you should change the extension to webp in the link
Steps to reproduce:
- Install Ibex DXP
- Configure variations
lip_imagine: filter_sets: thumbnail_web_path: format: webp filters: thumbnail: { size: [223, 223], mode: inset }
- Create Content type with an image
- Try to use created variation on the image field
Result:
The file is generated correctly, the extension remains but mine type points to webp but the extension in the link still points to the original extension
Expected:
The link should point to the webp extension