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?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to