How to resize and crop ActiveStorage variant
medium.image.variant({ combine_options: { resize: "400x300^", crop: '400x300+0+0' }})
full context: https://blog.eq8.eu/til/rails-active-storage-crop-and-resize.html
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
medium.image.variant({ combine_options: { resize: "400x300^", crop: '400x300+0+0' }})
full context: https://blog.eq8.eu/til/rails-active-storage-crop-and-resize.html
Post a comment