🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deep-nostalgia

Allows you to animate images using [deep-nostalgia](https://www.myheritage.com/deep-nostalgia) from myheritage

1.0.0
latest
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created

deep-nostalgia

Allows you to animate images using deep-nostalgia from myheritage

Installation

Install deep-nostalgia with npm

  npm install deep-nostalgia

Usage/Examples

Get video as url

const DeepNostalgia = require('deep-nostalgia');
const path = require('path');

const deepNostalgia = new DeepNostalgia({
  username: 'YOUR_EMAIL',
  password: 'YOUR_PASS'
});

deepNostalgia.animate({
  image: path.join(__dirname, '/uploads/', 'selfie.jpg')
})
.then(animation => {
  console.log('animation', animation);
})
.catch(err => {
  console.log('ERROR: ', err);
});

Get video as base64

const DeepNostalgia = require('deep-nostalgia');
const path = require('path');

const deepNostalgia = new DeepNostalgia({
  username: 'YOUR_EMAIL',
  password: 'YOUR_PASS'
});

deepNostalgia.animate({
  image: path.join(__dirname, '/uploads/', 'selfie.jpg'),
  toBase64: true
})
.then(animation => {
  console.log('animation', animation);
})
.catch(err => {
  console.log('ERROR: ', err);
});

Response

{
    "videoUrl": "https://sites-cf.mhcache.com/e/1/az1zaXRlc192MSZzPWU1NDJhMTM0ZTU1ZjQ3NDRjZTg2NTM2Y...TYUD.mp4",
    "base64": "/9YIUFDSFDSUFUSDFD....."
}

FAQs

Package last updated on 28 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts