Skip to content

Instantly share code, notes, and snippets.

@mildfuzz
Created November 15, 2012 11:00
Show Gist options
  • Select an option

  • Save mildfuzz/4077980 to your computer and use it in GitHub Desktop.

Select an option

Save mildfuzz/4077980 to your computer and use it in GitHub Desktop.
Paperclip File Size Help
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