1

我正在尝试将样式应用于回形针上传的图像,以保存原始图像和缩略图。

has_attached_file :image, styles => { :thumb => "100x100", :original => "100%"},
                          :path => "images/:id/:style_:basename.:extension"

不工作,它只保存原件,即使我删除了:original => "100%"部分。我已经安装了 ImageMagick 和 gem rmagick

4

2 回答 2

0

:thumb => "100x100" s/b :thumb => "100x100>"

你忘了>

见文档: https ://github.com/thoughtbot/paperclip

于 2013-04-29T02:04:28.130 回答
-1

删除这个:original => "100%"

于 2013-01-23T00:41:57.337 回答