<% attachments = Array(field.many? ? field.attachments : field.data) removable = local_assigns.fetch(:removable, false) %>
<% attachments.each do |attachment| %>
<%= render partial: 'fields/active_storage/drop_js/dropjs_list_edit', locals: { field: field, attachment: attachment, removable: removable, image_size: field.show_preview_size }%>
SEO: <%= alt_method(attachment) %>
full name : <%= attachment.filename %>
Width: <%= attachment.blob.metadata[:width]%>px
Height: <%= attachment.blob.metadata[:height]%>px
Aspect ratio - Width/Height : <%#= ((attachment.blob.metadata[:width]).to_f / (attachment.blob.metadata[:height]).to_f).round(2).to_s.to_r%>
Aspect ratio - Height/Width : <%#= (( (attachment.blob.metadata[:height]).to_f / attachment.blob.metadata[:width]).to_f).round(2).to_s.to_r%>
Vertical Padding : <%#= (attachment.blob.metadata[:height].to_f / attachment.blob.metadata[:width].to_f ).to_f.round(8)*100 %> (in percent %)
Size : <%= attachment.byte_size.fdiv(1000000).round(4) %> MB
<% end %>