I'm going to be generating thumbnails from user uploaded images. I'm looking around at the libraries available to do this sort of thing and there are three that look promising. ImageScience -- http://seattlerb.rubyforge.org/ImageScience.html Mini-Magick -- http://rubyforge.org/projects/mini-magick/ RMagick -- http://rmagick.rubyforge.org/ It looks like a lot of people are seeing problems with memory usage if they are invoking RMagick often. Mini-Magick looks like it's wrapping the command line and invoking ImageMagick which should be pretty fast. ImageScience is using FreeImage and people say it's pretty fast and isn't too hard on the server. All things being equal, what have you had success with? Has anyone run into any real gotcha's with any of these libraries? Thanks, -- Miles
on 2007-05-23 17:42
on 2007-05-23 18:52
On 5/23/07, Miles <twitch04@gmail.com> wrote: > > I'm going to be generating thumbnails from user uploaded images. I'm > looking around at the libraries available to do this sort of thing and > there are three that look promising. > > ImageScience -- http://seattlerb.rubyforge.org/ImageScience.html > Mini-Magick -- http://rubyforge.org/projects/mini-magick/ > RMagick -- http://rmagick.rubyforge.org/ rmagick - Loves memory. I haven't seen it leak necessarily, just jump up in memory until the garbage collector runs. minimagick - I've seen reports with a race condition with temp files: http://ar-code.lighthouseapp.com/projects/35/ticke... . Basically, if garbage collection runs during a large operation, it can delete some of the tempfiles while you're still using them. This should just require a quick update to the gem though, so it's not a huge deal. imagescience - works great if all you need is basic cropping and resizing. I implemented the imagemagick geometry strings in my attachment_fu. I've noticed it's not as flexible as imagemagick though, bombing on certain gifs or jpegs only. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.com
on 2007-05-23 19:04
> the command line and invoking ImageMagick which should be pretty fast. > ImageScience is using FreeImage and people say it's pretty fast and > isn't too hard on the server. > > All things being equal, what have you had success with? Has anyone run > into any real gotcha's with any of these libraries? I haven't used ImageScience, but my memory is that if you want to do things like watermark/drop shadows (ala flex image plugin) you can't. But if you don't then it's the WayToGo(tm)... -philip
on 2007-05-23 20:20
Thank you all for the responses. :) I have been doing some more research myself and I'm going to try ImageScience. All I need to do is resize the image and based on what I'm hearing, it's the best solution for this so far. I'll post again if I run into any interesting problems. Thanks again, -- Miles
on 2007-05-23 20:20
Thank you all for the responses. :) I have been doing some more research myself and I'm going to try ImageScience. All I need to do is resize the image and based on what I'm hearing, it's the best solution for this so far. I'll post again if I run into any interesting problems. Thanks again, -- Miles
on 2007-05-23 20:20
Thank you all for the responses. :) I have been doing some more research myself and I'm going to try ImageScience. All I need to do is resize the image and based on what I'm hearing, it's the best solution for this so far. I'll post again if I run into any interesting problems. Thanks again, -- Miles
on 2007-05-23 20:21
Thank you all for the responses. :) I have been doing some more research myself and I'm going to try ImageScience. All I need to do is resize the image and based on what I'm hearing, it's the best solution for this so far. I'll post again if I run into any interesting problems. Thanks again, -- Miles
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.