Last updated: Apr-23-2025
OverviewCloudinary's jQuery SDK provides simple, yet comprehensive image and video upload, transformation, optimization, and delivery capabilities that you can implement using code that integrates seamlessly with your existing jQuery application.
This guide relates to the latest released version of the Cloudinary JavaScript library, which contains the jQuery package.For details on all new features and fixes from previous versions, see the CHANGELOG.
The following instructions describe Cloudinary's jQuery frontend library. For the backend Node.js library, see the
Node.js documentation.
Quick example: TransformationsTake a look at the following transformation code and the image it delivers:
This relatively simple code performs all of the following on the original front_face.jpg image before delivering it:
And here's the URL that would be included in the image tag that's automatically generated from the above code:
In a similar way, you can transform a video.
Quick example: File uploadThe following code demonstrates defining a file input
field for client-side image or video file upload, and then initializing the input field for use with the cloudinary_fileupload
method:
Install the jQuery library using a package manager:
The optional --save
parameter saves the dependency in your bower.json
file.
Include the files in your HTML page:
2. Set Cloudinary configuration parametersTo use the Cloudinary jQuery library you have to configure at least your cloud_name
. You can additionally define a number of optional configuration parameters if relevant. You can find your Cloud name in the Dashboard of the Cloudinary Console, and you can find all of your credentials, including API Key and API Secret, on the API Keys page of the Cloudinary Console Settings.
cloud_name
is required to be configured, and not your API key or secret. Your API secret should never be exposed on the client side, so if you want to use signed uploads or generate delivery signatures, you'll also need server-side code, for which you can use one of our backend SDKs.secure
configuration parameter is false
. However, for most modern applications, it's recommended to configure the secure
parameter to true
to ensure that your transformation URLs are always generated as HTTPS.An instance of the Cloudinary jQuery main class, CloudinaryJQuery
, is already instantiated as $.cloudinary
. Setting the configuration parameters can be done either programmatically in each call to a Cloudinary method or globally using the Cloudinary config
method, for example:
The following sample project demonstrates a dynamic HTML page using Cloudinary's jQuery plugin (within a Ruby backend project) to perform direct uploading from the browser, including uploading progress, and an image preview with advanced transformations:
âï¸ Feedback sent!
âï¸Â  ErrorUnfortunately there's been an error sending your feedback.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4