Skip to content

yakirp/easy-cloudinary-eager-transformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This module allows you to work with async options on Cloudinary without the need for a backend component listening to Cloudinary webhooks.

This module utilizes PubNub to link all webhooks from Cloudinary to a specific random channel in your code.

Pre-requirements

Please make sure to open a Cloudinary account and PubNub account; both have a free plan.

Install

npm install easy-cloudinary-eager-transformation --save

Configuration

var easy_cld = require("easy-cloudinary-eager-transformation")

var pubnub = {
    subscribeKey: "",
    publishKey: "",
    ssl: true
}

var cld = {
    cloud_name: "",
    api_key: "",
    api_secret: ""
}

easy_cld.config(cld, pubnub)

Examples

AI Background Removal

The Cloudinary AI Background Removal add-on combines a variety of deep-learning algorithms to recognize the primary foreground object(s) in a photo and accurately remove the background in a matter of seconds

easy_cld.update("image_public_id" , "image", "upload", {
        background_removal: "cloudinary_ai:fine_edges"
    }, function (err, data) {
        console.log(err, data)
    });

AI-based Video Preview

Cloudinary offers intelligent automatic generation of video previews to give viewers a preliminary look at the most interesting content.

easy_cld.explicit("video_public_id" , "video", "upload", {
        effect: "preview"
    }, function (err, data) {
        console.log(err, data)
    });

Google Automatic Video Tagging

The Google Automatic Video Tagging add-on integrates Google's automatic video tagging capabilities with Cloudinary's complete video management and manipulation pipeline. Google analyzes video data to automatically identify scenes and suggest tags.

easy_cld.update("video_public_id" , "video", "upload", {
        resource_type: "video",
        categorization: "google_video_tagging"
    }, function (err, data) {
        console.log(err, data)
});

APIs

TBD

Author

Yakir Perlin

License

MIT License (Expat). See LICENSE.md for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages