hello This is how i am defineing image size for my active storage images.
<% @property.images.each_with_index do |image, index| %>
<li class="carousel-item <%= 'active' if index == 0 %>">
<%= image_tag image.variant(resize_to_fill: [540, 304]), alt: 'Image', class: 'd-block w-100' %>
</li>
<% end %>
is it possible to create a method for different image size like, thumbnail banner and call that method here? like this
<% @property.images.each_with_index do |image, index| %>
<li class="carousel-item <%= 'active' if index == 0 %>">
<%= image_tag image.thumbnail, alt: 'Image', class: 'd-block w-100' %>
</li>
<% end %>
Thank you