Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/dherault/aquarelle
- Owner: dherault
- License: mit
- Created: 2015-08-29T14:05:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T14:51:49.000Z (8 months ago)
- Last Synced: 2024-05-02T00:56:39.805Z (6 months ago)
- Topics: javascript
- Language: TypeScript
- Homepage:
- Size: 32.8 MB
- Stars: 17
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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