makemeazombie
Version:
Transforma tus imagenes dandole un estilo de zombie. Se utiliza la pagina de https://makemeazombie.com
60 lines (40 loc) • 1.21 kB
Markdown

Transform your images applying an zombie style using AI.
It is based on the [Makemeazombie](https://makemeazombie.com) page.
npm i --save makemeazombie
Transform an image from an external url
```js
const makemeazombie = require('makemeazombie');
const zombie = new makemeazombie();
zombie.transform({
photo: 'https://media.gq.com.mx/photos/5e220ec2ffa8c7000803441e/16:9/w_1920,c_limit/40-datos-curiosos-para-descubrir-a-scarlett-johansson.jpg',
// To save the image to a specific path
destinyFolder: './images'
})
.then(data => {
console.log('Image', data);
})
.catch(err => {
console.log('Error', err);
})
```
Transform a local image and get image in base64
```js
const makemeazombie = require('makemeazombie');
const zombie = new makemeazombie();
const path = require('path');
zombie.transform({
photo: path.join(__dirname, './image.jpg')
})
.then(data => {
console.log('Image in base64', data);
})
.catch(err => {
console.log('Error', err);
})
```
You can find a job where this module is used directly on whatsapp here: [WABOT](https://github.com/luiscruzga/wabot)