Provide definable image quality for images of sourceCollection
At the moment you can add your dataKeys and set a width to the versions of the generated images.
P.e. the original image has a width of 800px and there is a data key for retina images resulting in a width of 1600px. Because of the higher file size it would be nice to decrease the image quality of jpegs to lower the file size of the scaled retina version. A key like "quality" within a data key might be good to make the image quality changeable.
[FEATURE] Make the image quality definable per sourceCollection
At the moment the image quality of generated jpegs is configured
centrally in LocalConfiguration. Due to trying to find a balance
between image size and image quality it might be useful to enable
the configuration of the image quality for each sourceCollection
The change set enables users to p.e. render normal images with 90%
and retina images with p.e. 70%. To optionally enable the "quality"
setting for a sourceCollection, TypoScript can be configured as
followed (as example):
tt_content.image.20.1.sourceCollection.smallRetina.quality = 70
If not set, TYPO3 will take the default one of LocalConfiguration.
Reviewed-by: Markus Klein <firstname.lastname@example.org>
Tested-by: Markus Klein <email@example.com>
Reviewed-by: Alexander Opitz <firstname.lastname@example.org>
Tested-by: Alexander Opitz <email@example.com>