Image block doesn't crop image?

I’m working on a blog page using the Plainkit download using the default blocks for the content input.

In the default options for the image block is has a toggle for crop and an aspect ratio select option with different sizes, when you select an aspect ratio and crop is on it shows the crop in the preview, but this doesn’t carry over to the main site as the image is still the same size.

from what I can see in the source code it only adds the aspect ratio to the figure and not the image it’s self so the actual image is never cropped and saved.

<figure data-crop data-ratio="10/8">

How can this be default block be modified to actually crop the image to that ratio?

Thanks.

1 Like

You can create a custom block snippet in /site/snippets/blocks/ with the same filename as the original block snippet. It will then overwrite the original.

1 Like

Thanks.