Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudinary-react

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudinary-react

Present Cloudinary images and videos using React components

  • 1.7.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
increased by13%
Maintainers
1
Weekly downloads
 
Created
Source

Cloudinary React SDK

About

The Cloudinary React SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize and transform your cloud's assets.

Note

This Readme provides basic installation and usage information. For the complete documentation, see the React SDK Guide.

Table of Contents

Key Features

Version Support

SDK VersionReact 15.3React 16.2React 16.3React 17
1.6.8 & upXXVV
1.2.0 - 1.6.7XXVX
1.0.5 - 1.1.4XVXX
1.0.0 - 1.0.4VXXX

Installation

Install using your favorite package manager (yarn, npm)

npm install cloudinary-react

Or

yarn add cloudinary-react

Usage

Setup

import React from 'react';
import {Image, Video, Transformation} from 'cloudinary-react';

Transform and Optimize Assets

  • See full documentation

     // Apply a single transformation
     <Image cloudName="demo" publicId="sample">
       <Transformation crop="scale" width="200" angle="10" />
     </Image>
    
    // Chain (compose) multiple transformations
    <Image cloudName="demo" publicId="sample">
          <Transformation angle="-45" />
          <Transformation effect="trim" angle="45" crop="scale" width="600" />
          <Transformation overlay="text:Arial_100:Hello" />
    </Image>
    

Generate Image and Video HTML Tags

- Use <Image> to generate image tags
- Use <Video> to generate video tags

File upload

This SDK does not provide file upload functionality, however there are several methods of uploading from the client side.

Contributions

  • Ensure tests run locally (npm run test)
  • Open a PR and ensure Travis tests pass

Get Help

If you run into an issue or have a question, you can either:

About Cloudinary

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.

Additional Resources

Licence

Released under the MIT license.

FAQs

Package last updated on 25 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc