Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby graphic libraries

What's the difference between RMagic, ImageMagick, GD, etc. and which one should I use? I was looking for a thumbnail generation script and noticed that every script I found uses a different library for the same thing.

like image 582
Vincent Avatar asked Apr 27 '26 04:04

Vincent


1 Answers

Imagemagick, GD, DevIL, and GraphicsMagick are libraries used to create and edit image files. RMagick is a ruby wrapper around ImageMagick/GraphicsMagick. You may find other wrappers

I've had luck installing and configuring GraphicsMagick (similar to ImageMagick) and using RMagick on my Mac.

Are you doing batch processing? What about logical resizing (fixed XY, max XY, percent reduction)? Image types (png, jpg, gif, bmp)? Integration with other tools (Paperclip, as mentioned above)? What's your server setup (shared host, can install libraries, etc.)?

If you provide some more details on your thumbnail generation needs and your setup that might help give you a better answer, but I'd suggest giving at least GraphicsMagick and ImageMagick a try, along with mini_magick or rmagick. Imagescience sounds interesting to me too though...

like image 153
SundayEdition Avatar answered Apr 29 '26 17:04

SundayEdition



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!