• Stars
    star
    500
  • Rank 85,386 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated 8 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React components that utilize Cloudinary functionality

Cloudinary React SDK

About

NOTE-IMPORTANT: This is a legacy package, please find latest at https://github.com/cloudinary/frontend-frameworks/tree/master/packages/react

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 Version React 15.3 React 16.2 React 16.3 React 17 React 18
1.6.8 & up X X V V V
1.2.0 - 1.6.7 X X V X X
1.0.5 - 1.1.4 X V X X X
1.0.0 - 1.0.4 V X X X X

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.

More Repositories

1

cloudinary_npm

Cloudinary NPM for node.js integration
JavaScript
618
star
2

responsive_breakpoints_generator

JavaScript
437
star
3

cloudinary_gem

Cloudinary GEM for Ruby on Rails integration
Ruby
420
star
4

cloudinary_php

PHP extension for Cloudinary
PHP
380
star
5

cloudinary_js

Cloudinary JavaScript library
CSS
328
star
6

cloudinary_angular

Cloudinary Angular client library
TypeScript
305
star
7

pycloudinary

Python package for cloudinary
Python
249
star
8

cloudinary_ios

Cloudinary iOS SDK
Swift
164
star
9

fuif

Free Universal Image Format
C++
163
star
10

cloudinary_java

Cloudinary Java Client Library
Java
156
star
11

ssimulacra2

SSIMULACRA 2. Perceptual metric.
C++
141
star
12

cloudinary-vue

Cloudinary components library for Vue.js application, for image and video optimization.
JavaScript
99
star
13

CloudinaryDotNet

Cloudinary DotNet library
C#
98
star
14

ssimulacra

C++
93
star
15

cloudinary-video-player

Cloudinary Video Player
JavaScript
68
star
16

cloudinary_android

Android client for integrating with Cloudinary
Java
64
star
17

pkg-cloudinary-core

Distribution repository for the Cloudinary JavaScript library. Cloudinary is an end-to-end solution for all your image and video needs.
JavaScript
54
star
18

js-url-gen

Cloudinary's base javascript library, including URL generation.
HTML
47
star
19

frontend-frameworks

Cloudinary javascript frontend frameworks SDKs, including Shared HTML layer, Angular, React and Vue SDKs
TypeScript
41
star
20

cloudinary_wordpress

Cloudinary's WordPress plugin
PHP
39
star
21

cloudinary-go

Cloudinary Golang package
Go
35
star
22

cloudinary_android_parse_sample

Sample Android photo album app with Cloudinary using Parse as backend
Java
24
star
23

cloudinary_parse

Cloudinary Parse Module for easy integration
JavaScript
22
star
24

cloudinary_pubnub_demo

Demo for uploading images to Cloudinary and sharing them in real-time using PubNub
JavaScript
18
star
25

cloudinary-cli

A command line interface for Cloudinary's APIs
Python
17
star
26

cloudinary-svelte

Cloudinary components library for Svelte
JavaScript
17
star
27

cloudinary_magento

Cloudinary's Magento extension. Upload product images to the cloud, manipulate them to match your graphic design and optimize images for better user experience
PHP
16
star
28

cloudinary_scala

Cloudinary Scala Client Library
Scala
16
star
29

wdio-allure-ts

WebdriverIO, Allure reporter and TypeScript wrapper for UI E2E testing
TypeScript
15
star
30

cloudinary_magento2

Cloudinary's Magento 2 extension. Upload product images to the cloud, manipulate them to match your graphic design and optimize images for better user experience
PHP
15
star
31

pkg-cloudinary-jquery

Distribution repository for the Cloudinary JavaScript library and jQuery Plugin. Cloudinary is an end-to-end solution for all your image and video needs.
JavaScript
11
star
32

cloudinary_kotlin

Cloudinary Kotlin SDK library
Kotlin
10
star
33

cloudinary_sap_commerce

Cloudinary's SAP Commerce Extension
Java
9
star
34

pkg-cloudinary-jquery-file-upload

Distribution repository for the Cloudinary jQuery File Upload library. Cloudinary is an end-to-end solution for all your image and video needs.
JavaScript
9
star
35

android-demo

Java
9
star
36

cloudinary-react-native

TypeScript
9
star
37

web-speed-test-server

Page Speed Image Performance Analysis (Server)
JavaScript
8
star
38

web-speed-test-client

Page Speed Image Performance Analysis
JavaScript
8
star
39

cloudinary_sfcc_pagedesigner

Cloudinary Salesforce PageDesigner Integration
JavaScript
8
star
40

cloudinary_dart

Dart
7
star
41

bower-cloudinary

Cloudinary JavaScript bower package
JavaScript
6
star
42

cloudinary-js-streaming

Cloudinary Live Streaming Javascript SDK
JavaScript
6
star
43

cloudinary_flutter

Dart
6
star
44

cloudinary_tinymce

TinyMCE plugin for adding and manipulating images from Cloudinary's cloud-based media library
JavaScript
5
star
45

php-transformation-builder-sdk

Cloudinary PHP Transformation Builder SDK
PHP
3
star
46

mailinary

scrape and email web pages on schedule or on demand
JavaScript
3
star
47

cloudinary_titanium

Cloudinary integration library for Appcelerator Titanium
JavaScript
3
star
48

cloudinary_sfcc_site_cartridge

Salesforce Commerce Cloud integration
JavaScript
3
star
49

cloudinary-ios-sample-app

Cloudinary iOS sample application
Swift
2
star
50

cloudinary-video-analytics

JavaScript
2
star
51

product-customization-sample-app

JavaScript
2
star
52

imagemagick_blog

Complementary source code to Cloudinary's ImageMagick blog post
Ruby
2
star
53

cloudinary_chrome_extension

Cloudinary's Chrome extension for web developers
2
star
54

js-transformation-builder-sdk

TypeScript
2
star
55

cloudinary_cake_php

Cloudinary CakePHP module
PHP
2
star
56

media-management-js

JavaScript
2
star
57

vue-cli-plugin-cloudinary

Plugin of Cloudinary Vue SDK for Vue CLI
JavaScript
2
star
58

cloudinary_commercetools

Cloudinary demo for Commercetools
TypeScript
1
star
59

media-editing-js

JavaScript
1
star
60

cloudinaryNodeMongo

Upload images to Cloudinary and display previously uploaded images in a grid
JavaScript
1
star
61

cloudinary-live-demo

JavaScript
1
star
62

media-editing-java

1
star
63

live-streaming-demo

Demo of live video streaming using video streaming sdk
JavaScript
1
star
64

account-provisioning-php

Cloudinary Account Provisioning PHP SDK
PHP
1
star
65

media-editing-api-php

Cloudinary Media Editing API PHP SDK
PHP
1
star