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.
Please make sure to open a Cloudinary account and PubNub account; both have a free plan.
npm install easy-cloudinary-eager-transformation --save
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)
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)
});
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)
});
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)
});
TBD
MIT License (Expat). See LICENSE.md for details.