RubyFlow The Ruby and Rails community linklog

Rails, Paperclip, -auto-orient, and resizing...

I recently had a situation in which I wanted to generate thumbnail images and have them constrained to 67x50 (specifically “67x50>”). No problem so far, but I also wanted to auto rotate (via Imagemagick’s -auto-orient option) the images as they all come from a digital camera that provides this information. This causes a problem. Namely that some images ended up being 50x67 instead of 67x50. Here is my solution.

Comments

CarrierWave makes this way easier. Just saying.

Link broked.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in