I have a problem to find a way to save an image created with RMagick in a paperclip attachment.
imageList = Magick::ImageList.new
picture = imageList.flatten_images
:url => ...,
:path => ...
Let's see if that's what you need
picture = imageList.flatten_images file = Tempfile.new('my_picture.jpg') picture.write(file.path) YourModel.create(:picture => file, ...)
YourModel with the model you are using...