1.0.2 • Published 5 years ago

pfp-gen v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

pfp-gen

A profile picture generator

alt text

Given a background image and a letter, generate a generic profile picture for a user. pfp-gen will crop a random 200x200 portion of a background image and overlay a letter to provide a unique profile picture for the user.

Installation

npm install pfp-gen  --save

Usage

pfp-gen requires 2 parameters:

  • path to background image
  • users first initial
const pfp = require('pfp-gen');

pfp.gen('background.jpg', 'A');

returns: pfp_200x200.jpg
alt text

Contributing

Have an idea for pfp-gen? Don't hesitate.

Special Thanks

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago