Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate an image in Ruby without external dependencies?

I want to implement heat maps over Google maps with my own data beyond my Rails application. To do this I need to generate overlay images for each map coordinate (tile) based on my data.

I found how to generate that using ImageMagick but I do not want to depend on this, because I plan to distribute my application in several places, so I would like to do this using only the Ruby language.

Note that I need only to plot points in different colors over an small transparent square.

like image 832
Douglas Lise Avatar asked May 25 '12 00:05

Douglas Lise


1 Answers

I think chunky_png or oily_png will be your best bet on this. It has no external dependencies on ImageMagick, and generates images in a web-usable format.

like image 133
x1a4 Avatar answered Oct 07 '22 04:10

x1a4