-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Allow variants on file field #1948
Comments
You can add field :profile_pic, as: :file, format_using: -> {
value.variant(resize_to_limit: [480, 480]).processed
} @Paul-Bob please write to the OP and add a guide in the docs with a link from the field field. Close this issue when you see fit. Thanks! |
format_using: -> {
value.variant(resize_to_limit: [28, 28]).processed.image
} This don't break the app but the image keeps original dimensions only with lower resolution, I think the expected output of a variation is to resize the image |
This issue has been marked as stale because there was no activity for the past 15 days. |
Closing because you can use this |
@adrianthedev check my comment here
The user want to be able to resize the image on the show view using variants not to keep the same size with different resolution.
I see that from previous messages and by the title of the issue it was not clear enough, originally the scope of the issue was to permit variants, than we noticed that variants can be applied followed by |
It would be great if this would be added to the documentation. |
Yes @WvanLelyveld this should be documented |
Feature
From here
File field should allow variants, maybe like:
The text was updated successfully, but these errors were encountered: