Skip to content

[Feature] Specify maximum dimensions for imagesย #2071

@luccascorrea

Description

@luccascorrea

Initial checklist

  • I agree to follow the code of conduct
  • I searched issues and discussions and couldnโ€™t find anything (or linked relevant results below)

Problem

I wonder if there could be a way to configure a maximum width/height for images uploaded into the editor. The idea is not that it would prevent larger images from being uploaded but that it would calculate the correct ratio so that the image is presented within the bounded dimensions.

Is there a way to achieve this currently?
Thank you!

Solution

When configuring the ImageBlock, there could be options for assigning a maxWidth and maxHeight.

Alternatives

If there was a way to programmatically set an image's ratio, that would work too.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

๐Ÿ†• New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions