aquarelle

Random profile pictures with a sense of Art.

Usage no npm install needed!

<script type="module">
  import aquarelle from 'https://cdn.skypack.dev/aquarelle';
</script>

README

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