I have a custom module I'm re-using on other projects and I want to include an image style with an image crop configuration.
Under the configuration menu, I export a single crop item:
langcode: en
status: true
dependencies: { }
label: 'Head Shot Crop'
id: head_shot_crop
description: 'Cropping for image head shot.'
aspect_ratio: '1:1'
soft_limit_width: null
soft_limit_height: null
hard_limit_width: null
hard_limit_height: null
I strip out the UUID value for that to be set on new installs. However, for the image style export:
langcode: en
status: true
dependencies:
config:
- crop.type.head_shot_crop
module:
- crop
name: head_shot
label: 'Head Shot'
effects:
ce7f0752-c37c-4ff6-945d-96c298663365:
uuid: ce7f0752-c37c-4ff6-945d-96c298663365
id: crop_crop
weight: 1
data:
crop_type: head_shot_crop
I strip out the UUID value as well, but the associated crop configuration seems to be tied to the image style via UUID under the effects key, which also has a UUID value.
How can I pair an image style configuration with a crop configuration configuration so they exist on new module installs?