Feature: #79883 - Add cropVariant support to typoscript rendering of images

See Issue #79883

Description

The introduction of the new crop variants Issue #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 cropVariant as default you can provide the cropVariant name now in your TypoScript configuration. If cropVariant isn't provided the default variant will be used.

# Use specific cropVariant for the images
tt_content.image.20.1.file.cropVariant = mobile

Impact

If multiple cropVariants are available (see Issue #75880) you can now configure which variant to use with the cropVariant option of imgResource.