Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
输出图像尺寸应为 800x200 或更小。如何实现以下?
使用 Paperclip 在 Rails 中工作。
不确定这是否处理问题中的#1,但它处理#2 和#3。
has_attached_file :picture, :styles => { :medium => "800x200#" }
感谢 colli8marko !
使用回形针进行简单裁剪