What it does

The module InstagramPages::TextSeries provides an interface to specify the body text, bylines for intermediate frames and the final frame, frame size, and background colour:

require 'textrast'

text = InstagramPages::TextSeries.new "Body text!", "(would be used for bylines in the middle)", "- Final byline", 500, 50, "Times New Roman", "#fff000"
photos = text.paginate
photos.each_with_index { |photo, i| photo.generate_file "photo_#{i}.png" }

Why

This student-run (and not entirely teacher-approved) Instagram account for confessions wanted an easier way to generate images from confessions sent in by Google Forms.

Built With

Share this project:

Updates