I’m creating my own module and I need to programmatically create an image style to use with a new media type.
I have even read almost all of the responsive_image code to try to find where that module creates a new image style.
How can I programmatically create a new image style?
Ok so I just found this file
name: max_1300x1300 label: 'Max 1300x1300' effects: 04caae9a-fa3e-4ea6-ae09-9c26aec7d308: id: image_scale data: width: 1300 height: 1300 upscale: false weight: 1 uuid: 04caae9a-fa3e-4ea6-ae09-9c26aec7d308 langcode: en dependencies: module: - responsive_image enforced: module: - responsive_image
Now I get that I probably need to create file in config/install that is named image.style.my_image_style.yml with these attributes but how do get this uuid or do I just not?