我有一个问题,无法找到一种保存使用RMagick创建的图像到paperclip附件的方法。
imageList = Magick::ImageList.new
imageList.new("images/apple.gif", "images/overlay.png")
...
picture = imageList.flatten_images
我正在处理一个带有附加文件的模型
has_attached_file :picture,
:url => ...,
:path => ...
我只想通过imageList.flatten_images
返回的图像保存为我的模型的图片。
请问有人知道如何轻松实现吗?
谢谢