Or little computing tricks and hacks
In my Rails app, I am using the gems
gem 'mini_magick' gem 'carrierwave'
for image manipulation of files entered by users. Even though the sample files are full of useful comments, I did not find a comprehensive list of the possible commands. I needed to create exact sizes respecting ratio. The internet searches failed me today! Perhaps I was in a rush…
I found this post, which is actually describing another gem for image manipulation, describing the following commands:
resize an image down to fit the width and height, maintaining the image ratio.
resize an image up or down to fit the width and height, maintaining the image ratio.
crop and resize to fit the width and height.