I gave a talk about image processing with RMagick. Here's the source code for what I demoed. Everything here is very basic and it's meant to get you started on the right track to building more exciting stuff.
From the example you will learn how to convert images to different formats, generate memes, resize images, apply filters (blur, saturation, etc), and building an image collage.
- Install ImageMagick
brew install imagemagick
- Install GhostScript
brew install ghostscript
- Install RMagick
gem install rmagick
To use Rmagick in services like heroku or iron.io, simply include rmagick
in your gemfile. These services should already have rmagick set up.
Inside the src
folder is a ruby script. Simply type ruby app.rb
to run it. The ruby script will generate images into the results
folder
app.rb
in the src folder contains the ruby code. It is very well documented.
For questions about me, what I do, and other exciting things tweet me!