Make me a Zombie!
Transform your images applying an zombie style using AI.
It is based on the Makemeazombie page.
Installation
npm i --save makemeazombie
Example
Transform an image from an external url
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',
destinyFolder: './images'
})
.then(data => {
console.log('Image', data);
})
.catch(err => {
console.log('Error', err);
})
Transform a local image and get image in base64
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);
})
Related
You can find a job where this module is used directly on whatsapp here: WABOT