Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 769 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 769 Bytes

Instagram-friendly Paginator

This small Ruby module rasterises text into one or more images of text, suitable for upload to social media.

Dependencies

  • rmagick
  • ...which depends on ImageMagick 6.4.9 or later (if you're on OSX and are having issues with homebrew, see here.

Usage

# assuming you have instagram-pages.rb in the directory
require_relative 'instagram-pages'

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

For more info, please take a look at the docs