easy-cloudinary-eager-transformation

This module allows you to work with async options on [Cloudinary](https://cloudinary.com/) without the need for a backend component listening to Cloudinary webhooks.

Usage no npm install needed!

<script type="module">
  import easyCloudinaryEagerTransformation from 'https://cdn.skypack.dev/easy-cloudinary-eager-transformation';
</script>

README

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.