Why do I get the message "Too many open files - convert" from the program "Paperclip"?

I am trying to run a clean rake task for paperclip since I just finished converting all previous images that were png to jpg and I keep getting

rake aborted!
Too many open files - convert

I'm sure I have over 10,000 images with 6 styles, any ideas on how to get around this?

+5
source share
1 answer

See if this answers your question: https://github.com/thoughtbot/paperclip/issues/862

From this thread

Shikachu ( https://github.com/sikachu ) said:

" , Paperclip. > , Paperclip Tempfile . > (, , > .)


file = File.open("foo.jpg")
@user.attachment = file
file.close # totally safe!
+6

All Articles