Feature: #79883 - Add cropVariant support to TypoScript rendering of images
See forge#79883
Description
The introduction of the new crop variants forge#75880 broke the handling of cropped images when using TypoScript to render file(reference)'s. This feature fixes this and introduces a new TypoScript option to use a different cropVariant.
To use a different crop
as default you can provide the
crop
name now in your TypoScript configuration.
If crop
isn't provided the default variant will be used.
# Use specific cropVariant for the images
tt_content.image.20.1.file.cropVariant = mobile
Copied!
Impact
If multiple cropVariants are available (see forge#75880) you can now configure
which variant to use with the crop
option of img
.