1.0.26 • Published 4 years ago

easy-cloudinary-eager-transformation v1.0.26

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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.

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.20

4 years ago

1.0.16

4 years ago

1.0.9

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago