Check out ImageMagic resize docs. You probably need to use 100x100#
instead of 100x100!
Paperclip Resize and Crop
-
23-06-2023 - |
Question
I am using Paperclip with Rails4. I have the following image
Now i want to resize and Crop the image but its getting cropped and orientation of the image is getting displaced like below
:photo,
:path => ":rails_root/public/system/:attachment/:id/:style/:filename",
:url => "/system/:attachment/:id/:style/:filename",
:styles => {
:small => { :geometry => "100x100!" },
:medium => { :geometry => "500x500!"}
}
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow