I am looking for sample code for an example, preferably Ruby on Rails, on how to dynamically create an image containing text in a specific font.
Basically, I want to create a URL like this:
/api/text_as_image?font=futura&text=foo
And return the image containing the text "foo" in the font "futura". I know that this can be done with ImageMagick, I just can't figure it out. Any help is appreciated.
source share