[英]How to resize and crop in ImageMagick and Paperclip?
The output image size should be 800x200 or smaller. 输出图像尺寸应为800x200或更小。 How to achieve the following?
如何实现以下目标?
Working in Rails with Paperclip. 使用回形针在Rails中工作。
Not sure if this handles #1 in the question, but it does #2 and #3. 不知道这是否处理问题中的#1,但确实处理#2和#3。
has_attached_file :picture,
:styles => { :medium => "800x200#" }
Thanks to colli8marko for this! 感谢colli8marko!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.