Back to README
This TYPO3 extension tries to help you as much with configuring cropVariants in different situations:
- Centralized configuration for AspectRatio, Cover-/CropArea presets and CropVariant definitions
- Simplified cropVariants configuration for the Table Configuration Array (custom CropVariantsBuilder)
- Translation logic for cropVariant label
Each of them are configured in a YAML configuration file. If you don't configure any other configuration provider extension or the file in the given extension doesn't exists, the shipped YAML configuration file CropVariants.yaml is loaded automatically.
[**Overview of defaults and predefined presets*Predefined aspectRatiosts.md)
TYPO3 has some really powerful features to allow TYPO3 backend editors to crop images. You actually have the following possibilities to configure cropVariants for a field in following contexts (far as I know and I've use in real world TYPO3 projects):
- Set a global/default cropVariants configuration (which is used if you do not make a more specific configuration)
- Set a cropVariants configuration for a specific field of a specific table (where you optionally can disable the default/global cropVariants configuration)
- Set a cropVariants configuration for a specific field of a specific type of a table (where you optionally can disable the default/global cropVariants configuration)
I know that may seem confusing - but once you understand, how the options are working, it makes sense for real world scenarios.
- Set a cropVariants configuration for a specific field childTca's type of a specific table (where you optionally can disable (parts of) the default/global cropVariants configuration) - as used in IRRE elements for example.
- Set a cropVariants configuration for a specific field childTca's type of a specific type of a table (where you optionally can disable (parts of) the default/global cropVariants configuration) - as used in IRRE elements for example.
a) You can set up default/s
- for aspectRatios
- for coverArea
- for cropAreas
- list of default cropVariants
b) A custom CropVariants Builder helps you writing cropVariants configurations based on mentioned defaults with IDE auto completion support.