Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Dave Faliskie
Dave Faliskie
17,793 Points

generate a picture based on text input

Hi,

I have a rails app which will take an input string such as a quote. I have it set up now so that a user can input a quote and the quote gets saved to a database. What I would like to do is Automatically generate an image with the quote one it. The original image would be something plane like a solid background, then the uploaded quote would be written on it and the new image would contain the quote.

The end goal for this to to use the images to push to social media, so the image needs to be saved with the quote in it.

Any ideas on how to do this would be AWESOME!!

1 Answer

Check out RMagick, the Ruby API for ImageMagick. It can do what you want.