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

Smart crop Assets block powered by DMwOA #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

@anuraggupta228 anuraggupta228 linked an issue Nov 26, 2024 that may be closed by this pull request
@sdmcraft
Copy link
Collaborator

I think we can directly use the srcset functionality of the picture which serves the exact purpose natively. For e.g.

<picture>
  <source srcset="image.jpg?smartcrop=large" media="(min-width: 1024px)">
  <source srcset="image.jpg?smartcrop=medium" media="(min-width: 768px)">
  <source srcset="image.jpg?smartcrop=small">
  <img src="image.jpg" alt="A responsive example">
</picture>

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

Successfully merging this pull request may close these issues.

Smart Crop Assets with DM OpenAPI
2 participants