`soim`: Social image generator CLI

In my last post on Social Image generation, I talked about how I built a site which can be used to automate social image generation. Well, I just built a CLI for it! Introducing soim.

SiddharthShyniben
/


This content originally appeared on DEV Community and was authored by Siddharth

In my last post on Social Image generation, I talked about how I built a site which can be used to automate social image generation. Well, I just built a CLI for it! Introducing soim.

GitHub logo SiddharthShyniben / soim

Social Image generator

soim

Cover This image was made by running soim -t "This is some sample output of <b><code>soim</code></b>" -T "social, images, generator" -i "https://raw.githubusercontent.com/AnandChowdhary/undrawcdn/master/illustrations/images.svg" -c "Made by @SiddharthShyniben" -p "cover.png"

soim is a CLI tool for generating social images. Given data, soim uses Puppeteer to screenshot a page.

soim can also be used as a library. The exported generateImage function takes an object as options, and the options are the same as the CLI options.

Install

# locally
~$ npm i soim
# globally (for CLI)
~$ npm i -g soim
~$ soim -t ...

CLI options

  • -t, --text: The main text.
  • -T, --tags: Comma separated list of tags, shown at the top of the image
  • -p, --path: The place to write the image
  • -l, --link: Custom link where the social image template lives. Useful if you want to design a custom template. See…

It's a small CLI tool to generate social images. Just run soim --text Something --caption something ... and get an image!

It uses puppeteer under the hood to generate images. I'll write a post on it someday.

Hope you like it!


This content originally appeared on DEV Community and was authored by Siddharth


Print Share Comment Cite Upload Translate Updates
APA

Siddharth | Sciencx (2021-08-29T15:45:43+00:00) `soim`: Social image generator CLI. Retrieved from https://www.scien.cx/2021/08/29/soim-social-image-generator-cli/

MLA
" » `soim`: Social image generator CLI." Siddharth | Sciencx - Sunday August 29, 2021, https://www.scien.cx/2021/08/29/soim-social-image-generator-cli/
HARVARD
Siddharth | Sciencx Sunday August 29, 2021 » `soim`: Social image generator CLI., viewed ,<https://www.scien.cx/2021/08/29/soim-social-image-generator-cli/>
VANCOUVER
Siddharth | Sciencx - » `soim`: Social image generator CLI. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/08/29/soim-social-image-generator-cli/
CHICAGO
" » `soim`: Social image generator CLI." Siddharth | Sciencx - Accessed . https://www.scien.cx/2021/08/29/soim-social-image-generator-cli/
IEEE
" » `soim`: Social image generator CLI." Siddharth | Sciencx [Online]. Available: https://www.scien.cx/2021/08/29/soim-social-image-generator-cli/. [Accessed: ]
rf:citation
» `soim`: Social image generator CLI | Siddharth | Sciencx | https://www.scien.cx/2021/08/29/soim-social-image-generator-cli/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.