Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dherault/aquarelle

Random profile pictures with a sense of Art.
https://github.com/dherault/aquarelle

javascript

Last synced: 8 days ago
JSON representation

Random profile pictures with a sense of Art.

Awesome Lists containing this project

README

        

# Aquarelle

![npm](https://img.shields.io/npm/v/aquarelle?color=success)

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

## Example thumbnails

![](https://i.imgur.com/29wqN0T.png) .
![](https://i.imgur.com/lSpkUWJ.png) .
![](https://i.imgur.com/XNk6VR8.png) .
![](https://i.imgur.com/Z0K32ZG.png) .
![](https://i.imgur.com/NrVkJgd.png) .
![](https://i.imgur.com/a8pCTGT.png)

## Installation

`npm i aquarelle --save`

## Usage

```js
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