Created
November 15, 2012 11:00
-
-
Save mildfuzz/4077980 to your computer and use it in GitHub Desktop.
Paperclip File Size Help
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| has_attached_file :photo, | |
| :styles => { | |
| :tiny => "100x100", # fixed width and height | |
| :thumb => "100>x100", # resize to a fixed width if original height if greather than specified | |
| # dimension and fixed height | |
| :small => "200x200>", # fixed width and resize to a fixed height if original height i greather than | |
| # specified dimension | |
| :medium => "200 "200x200<" # fixed width and resize to a fixed heigth if original height i less | |
| # than specified dimension | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment