News for hackers. Stuff that matters.
Re:Sysadmin mistakes start-ups make by polvi on Tuesday October 20, 2009 @01:55PM (#892891)
The solution to use an image processing library such as RMagick, http://rmagick.rubyforge.org/
Re:Sysadmin mistakes start-ups make by tptacek on Tuesday October 20, 2009 @02:01PM (#892911)
Calling into RMagick/ImageMagick from inside the request/response cycle is probably even worse than shelling out, because ImageMagick does grievous damage to your runtime.
Re:Sysadmin mistakes start-ups make by polvi on Tuesday October 20, 2009 @02:15PM (#892946)
I guess it all depends how you design it and what you are doing. I would have to agree with others, the out of request cycle image processing solutions are definitely the right way to go overall.
Re:Sysadmin mistakes start-ups make by Pistos2 on Tuesday October 20, 2009 @10:47PM (#893894)
Last I tried RMagick, it leaked significantly. Definitely not something I want to use in a long-lived process. I remember having to fork to use it, to work around the memory leak. If you don't need the fancier operations, there are lighter image manipulation gems out there that do just the basics, but without leaking. e.g. ImageScience http://seattlerb.rubyforge.org/ImageScience.html