Skip to content

Embeds text into an Instagram-friendly series of photos.

Notifications You must be signed in to change notification settings

kaine119/instagram-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Embeds text into an Instagram-friendly series of photos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages