Forum: Ruby gem suggestions for text to bitmap

Posted by Wayne Brisette (Guest)
on 2013-01-15 21:14
(Received via mailing list)
There are several gems that look I might be able to use, but I'm 
wondering if
people have any suggestions. I'm looking for a gem that will take a text 
string
and convert it to a GIF/PNG/JPG. That's all I need, nothing fancy. Any
suggestions on gems that you may have used.

Thanks in advance,
Wayne
Posted by Ryan Davis (Guest)
on 2013-01-15 22:08
(Received via mailing list)
On Jan 15, 2013, at 12:13 , Wayne Brisette <wbrisett@att.net> wrote:

> There are several gems that look I might be able to use, but I'm wondering if
> people have any suggestions. I'm looking for a gem that will take a text string
> and convert it to a GIF/PNG/JPG. That's all I need, nothing fancy. Any
> suggestions on gems that you may have used.

You don't care about font, font-size, kerning, line spacing, or anything 
else "fancy"... right?

Since that's all true, my png gem has png/font that extends the Canvas 
with #annotate.

Otherwise, you probably want something fancy.
Posted by "Hajdú Zoltán" <janicetr@fastmail.fm> (Guest)
on 2013-01-16 09:11
(Received via mailing list)
You should try the GD Graphics Library
http://rubygems.org/gems/gd2

Best regards:

Z.
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
No account? Register here.