Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add preferred image aspect for ImageBlock #1191

Closed
tidyui opened this issue May 24, 2020 · 0 comments
Closed

Add preferred image aspect for ImageBlock #1191

tidyui opened this issue May 24, 2020 · 0 comments

Comments

@tidyui
Copy link
Member

tidyui commented May 24, 2020

When working with images as blocks in the main content, add a setting for "Preferred Aspect" where the editor can choose how the image show be displayed in the current context. The available aspects should be:

  • Original
  • Landscape
  • Portrait
  • Square

For the developer, add a method on the MediaHelper that resizes an ImageBlock with a given width according to the currently selected preferred aspect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant