
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
cloudinary-core
Advanced tools
Cloudinary Client Side JS library. Cloudinary streamlines your web application’s image manipulation needs. Cloudinary's cloud-based servers automate image uploading, resizing, cropping, optimizing, sprite generation and more.
The Javascript SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize and transform your cloud's assets.
This Readme provides basic installation and usage information. For the complete documentation, see the Javascript SDK Guide.
Chrome, Safari, Firefox, IE 11
npm install cloudinary-core
Or
yarn add cloudinary-core
There are several ways to configure cloudinary-core:
var cl = cloudinary.Cloudinary.new( { cloud_name: "demo"});
// Using the config function
var cl = cloudinary.Cloudinary.new();
cl.config( "cloud_name", "demo");
When using the library in a browser environment, you can use meta tags to define the configuration options.
The init() function is a convenience function that invokes both fromDocument() and fromEnvironment().
For example, add the following to the header tag:
<meta name="cloudinary_cloud_name" content="demo">
In your JavaScript source, invoke fromDocument():
var cl = cloudinary.Cloudinary.new();
cl.fromDocument();
// or
cl.init();
When using the library in a backend environment such as NodeJS, you can use an environment variable to define the configuration options.
Set the environment variable, for example:
export CLOUDINARY_URL=cloudinary://demo
In your JavaScript source, invoke fromEnvironment():
var cl = cloudinary.Cloudinary.new();
cl.fromEnvironment();
// or
cl.init();
// Apply a single transformation
cl.url( "sample", { crop: "scale", width: "200", angle: "10" })
// Chain (compose) multiple transformations
cl.url( "sample", {
transformation: [
{ angle: -45 },
{ effect: "trim", angle: "45", crop: "scale", width: "600" },
{ overlay: "text:Arial_100:Hello" }
]
});
image() function to generate an HTMLImageElementimageTag() function to generate an ImageTag instancevideo() function to generate an HTMLVideoElementvideoTag() function to generate a VideoTag instanceSee cloudinary-jquery-file-upload.
npm run test)If you run into an issue or have a question, you can either:
Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.
Released under the MIT license.
The imgix-core-js package provides similar functionalities for managing and transforming images using the Imgix service. It allows developers to easily generate URLs for images with various transformations applied. Compared to cloudinary-core, imgix-core-js focuses solely on image transformations and does not support video transformations.
The filestack-js package offers a comprehensive set of tools for file uploading, transformation, and delivery using the Filestack service. It supports both images and videos, similar to cloudinary-core. However, Filestack provides additional features such as file storage and security options.
The imagekit-javascript package provides functionalities for image and video management, including uploading, transformation, and optimization using the ImageKit service. It offers similar features to cloudinary-core but also includes advanced optimization techniques for faster delivery.
FAQs
Cloudinary Client Side JS library. Cloudinary streamlines your web application’s image manipulation needs. Cloudinary's cloud-based servers automate image uploading, resizing, cropping, optimizing, sprite generation and more.
The npm package cloudinary-core receives a total of 203,929 weekly downloads. As such, cloudinary-core popularity was classified as popular.
We found that cloudinary-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.