What is the difference between using > or # when cropping a thumb:
example:
has_attached_file :image, :styles => {:small => "100x100#"}
has_attached_file :image, :styles => {:small => "100x100>"}
How do get a thumb that has the maxium height of 100px but variable width (to preserve the aspect ratio)?
Thanks
Deb
Paperclip uses ImageMagick under the covers, here's a link to the full ImageMagick geometry settings (what you're putting in your :small thumbnail definitions):
http://www.imagemagick.org/script/command-line-processing.php#geometry
It sounds like you want: "Height given, width automagically selected to preserve aspect ratio."
has_attached_file :image, :styles => {:small => "x100"}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With