My Ruby on Rails application has a feature that allows users to upload images. I have discovered that Active Storage can utilize ImageMagick to resize images using this code:
model.image.variant(resize: "100X100")
However, resizing images can also be achieved using CSS like so:
<%= image_tag(rails_blob_url("file_name.jpg"), width: '100px', height: '100px') %>
Which method should you choose? Is it better to use ImageMagick or CSS for image resizing?