Hi,
I would like to add support for defining different versions of images for active storage.
Already started some development:
The diff is here: https://gist.github.com/igorkasyanchuk/2775123a3fbaf196f43a092e8f4a6931
and it could be used like
has_one_attached :avatar, versions: { thumb: { combine_options: {thumbnail: “500x500^”, gravity: “center”, extent: “500x500”} } }
``
is it fine? I’ve got a suggestion to implement it like this
has_one_attached :avatar do
variation :thumb, thumbnail: "500x500^", gravity: "center", extent: "500x500"
end
which looks good to me.
What do you think?