I'm able to upload multiple images, but I'm not sure how to customize the size of the image.
This is how I view the images:
<%= attachment_image_tag(image, :file, :fill, 300, 300) %>
:fill
: crops the images
300, 300
: is the height and width
Before refile, I had hardcoded the source of the images, and then I used this CSS to fix the size of the image.
img {
display:block;
max-height: 430px;
max-width: 100%;
width:auto;
height:auto;
}
I wanted to have a height consistent throughout, but the width can be any size and won't be distorted or cropped.
At the time of this post, I was thinking that I can get away with increasing the width and height in the refile attachment_image_tag option to like 800, 800
, but it still crops the images... Also, I tried to get rid of :fill
, but my images won't show, and the code just breaks.