Search found 2 matches

by Moosa
2014-09-03T23:55:36-07:00
Forum: Users
Topic: Resizing to fill a space
Replies: 1
Views: 2350

Re: Resizing to fill a space

Got it from another post. Here is what worked for me. has_attached_file :image, :styles => { :medium => "250x250", :thumb => "100x100" }, :default_url => "", :convert_options => {:medium => '-background white -gravity center -extent 250x250', :thumb => '-background white -gravity center -extent ...
by Moosa
2014-09-03T23:08:00-07:00
Forum: Users
Topic: Resizing to fill a space
Replies: 1
Views: 2350

Resizing to fill a space

I have thumbnail product images that are in different aspect ratios and sizes. This is a marketplace app so sellers will load images in various sizes. I want to resize to make them fit within the 200x200 thumbnail grid that I have. i.e. if the aspect ratio is not square, fill the blank space so the ...