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

MediaUpload fallback #63

Open
rafzielinski opened this issue Jan 28, 2021 · 0 comments
Open

MediaUpload fallback #63

rafzielinski opened this issue Jan 28, 2021 · 0 comments
Labels

Comments

@rafzielinski
Copy link
Contributor

When uploading an image via MediaUploader it's not generating the crops bigger than the image original size (which makes sense) but it's not working correctly when it comes to calling for crops from the front-end.

If for example, we would upload an image with a resolution of 1150px x 900px when we call for :landscape_1200 crop we get nothing but fallback.svg back.

Expected behavior: serve a smaller version of the image if possible. ie:

  • if for the example above the :landscape_1200 crop is not available, it should try to get you :landscape_1000 back
  • if that is not available maybe it should search in different crops, like content_1200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant