Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails Paperclip Plugin - Style Options for Resizing

So, I want to resize images to a FIXED width, but proportional height.

I have been trying a wide range of operators:

380x242# 380x242> 380!x242 380x242<

none of them have the desired effect. Any help? I want it to fill or resize to the 380 width, then resize / shrink the height by the same factor it used to shrink or resize the image to 380 wide.

like image 657
Jonathan Soeder Avatar asked Sep 10 '25 02:09

Jonathan Soeder


1 Answers

Try using 380x

This should resize width to 380px and keep original aspect ratio.

For all available options for resizing images go here: http://www.imagemagick.org/script/command-line-processing.php?ImageMagick=lj6pre8q2iautc3ch6nuph1fc2#geometry

like image 194
Slobodan Kovacevic Avatar answered Sep 12 '25 18:09

Slobodan Kovacevic