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.
npm install pfp-gen --save
pfp-gen requires 2 parameters:
- path to background image
- users first initial
const pfp = require('pfp-gen');
pfp.gen('background.jpg', 'A');
Have an idea for pfp-gen? Don't hesitate.
- @bkawk - William Hill - The idea behind the project.