Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.04 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.04 KB

Aquarelle

npm

Aquarelle is a random profile picture generator, based on famous paintings.

Example thumbnails

. . . . .

Installation

npm i aquarelle --save

Usage

const aquarelle = require('aquarelle')

const {
  filePath,
  fileName,
  width,
  height,
  top,              // Crop y position
  left,             // Crop x position
  title,            // Title of the artwork
  year,             // Year of the artwork
  author,           // Author name of the artwork
  originalFilePath, // To display the original artwork (uncropped) if you want to
  originalFileName,
} = await aquarelle(128, 128, '/path/to/output/dir')

console.log('Profile picture generated!', filePath) // /path/to/output/dir/f8b80502-19c6-4b7e-ad8e-acc1e793b952.png

License

MIT