Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anwesh43/shaped-image-nodejs
nodejs library to create shaped images
https://github.com/anwesh43/shaped-image-nodejs
Last synced: 4 days ago
JSON representation
nodejs library to create shaped images
- Host: GitHub
- URL: https://github.com/anwesh43/shaped-image-nodejs
- Owner: Anwesh43
- Created: 2017-06-05T06:09:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-05T06:32:33.000Z (over 7 years ago)
- Last Synced: 2024-03-15T22:05:38.871Z (11 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
Awesome Lists containing this project
README
## shaped-image-nodejs
### A nodejs library to create a shaped image from the original image. Currently only circular and triangular shape images are supported.
### Installation
```
npm install shaped-images-nodejs
```
### Usage```
const ShapedImageCreator = require('shaped-images-nodejs')
ShapedImageCreator.createShapeLike(imageURL,'circle').then(()=>{
console.log("circular image is saved successfully")
}).catch((err)=>{
console.log(err)
})
ShapedImageCreator.createShapeLike(imageURL,'triangle','test_triangle.png').then(()=>{
console.log("triangular image is saved successfully")
}).catch((err)=>{
console.log(err)
})
```