0.1.23 ā€¢ Published 1 year ago

social-image-kodyfire v0.1.23

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Welcome to social-image-kodyfire šŸ‘‹

Version Documentation License: MIT Twitter: anis_marrouchi

Generate a dynamic image for social media sharing based on HTML templates using Kodyfire. This is just the beginning.

šŸ  Homepage

Requirements

social-image-kodyfire requires the kodyfire-cli to be installed

npm install -g kodyfire-cli

Install

npm install social-image-kodyfire

Usage

Method 1: As a generator

In order to generate your artifacts, run the generate command. The syntax is kody generate|g [kody] [concept]. If you ommit kody and concept the assistant will prompt you to select them. As an example, run the following command from your terminal:

kody generate react component

Method 2: As a kody project

Refer to the kodyfire generate your artifact section. Once your project is initialized and ready for kody, run the following command to generate your images.

kody run -s kody-social-image.json

Available Templates

basic (credits: puppeteer-social-image)

Renders text on a background image.

Params
  • title string - text to render
  • logo string - URL for the logo
  • imageUrl string - URL for the background image
  • background string - Valid CSS background color
  • color string - Valid CSS color
  • watermark string - (optional) text for footer

article (credits: puppeteer-social-image)

Display a title and subtitle on a background image, with an optional eyebrow

Params
  • title string - title text
  • subtitle string - subtitle text
  • eyebrow string - eyebrow text that renders above the title. Use for date
  • logo string - URL for the logo
  • imageUrl string - URL for the background image
  • background string - Valid CSS background color
  • color string - Valid CSS color
  • watermark string - (optional) text for footer

fiftyfifty (credits: puppeteer-social-image)

Tempate with split content

Params
  • title string - title text
  • subtitle string - subtitle text
  • logo string - URL for the logo
  • imageUrl string - URL for the background image
  • background string - Valid CSS background color
  • color string - Valid CSS color
  • watermark string - (optional) text for footer

doodle (credits: css-doodle)

Tempate using the doodle-css as background

Params

Add the following params to your generated concepts. As an example, the final updated concepts might look like the following:

{
      "name": "image-3",
      "template": "fiftyfifty.html.template",
      "split": "diagonal",
      "fontWeight": "medium",
      "fontSize": "80px",
      "title": "Hello World!",
      "subtitle": "Your subtitle",
      "eyebrow": "17 July 2022",
      "logo": "https://noqta.tn/_next/image?url=%2Fimages%2Flogo.svg&w=256&q=75",
      "background": "tranparent",
      "imageUrl": "https://images.unsplash.com/photo-1507608869274-d3177c8bb4c7?w=1950&q=80",
      "color": "#000",
      "includeWatermark": true,
      "watermark": "social-image-kodyfire",
      "size": "facebook",
      "outputDir": ""
    }

šŸ“… Future Features

  • Add common social post dimensions as size
  • Allow passing arguments to doodles
  • Compose doodle for dymamic backgrounds
  • Add template for most common post subjects
  • Add add meme template

Run tests

TODO

Author

šŸ‘¤ Anis Marrouchi

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ā­ļø if this project helped you!

Credits

šŸ“ License

Copyright Ā© 2022 Anis Marrouchi.

This project is MIT licensed.


This README was generated with ā¤ļø by readme-kodyfire

0.1.23

1 year ago

0.1.15

1 year ago

0.1.16

1 year ago

0.1.18

1 year ago

0.1.2

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.0.17

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago