Skip to content

Commit 3cbd055

Browse files
author
Amir Tocker
committed
Add README.md
1 parent 533bb6e commit 3cbd055

File tree

1 file changed

+123
-0
lines changed

1 file changed

+123
-0
lines changed

README.md

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
2+
# Cloudinary React Library
3+
4+
Cloudinary is a cloud service that offers a solution to a web application's entire image management pipeline.
5+
6+
Easily upload images to the cloud. Automatically perform smart image resizing, cropping and conversion without installing any complex software. Integrate Facebook or Twitter profile image extraction in a snap, in any dimension and style to match your website’s graphics requirements. Images are seamlessly delivered through a fast CDN, and much much more.
7+
8+
Cloudinary offers comprehensive APIs and administration capabilities and is easy to integrate with any web application, existing or new.
9+
10+
Cloudinary provides URL and HTTP based APIs that can be easily integrated with any Web development framework.
11+
12+
## Getting started guide
13+
14+
![](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **Take a look at our [Getting started guide for jQuery](http://cloudinary.com/documentation/jquery_integration#getting_started_guide)**.
15+
16+
## Installation
17+
18+
19+
### NPM
20+
21+
1. Install the files using the following command. Use the optional `--save` parameter if you wish to save the dependency in your `bower.json` file.
22+
23+
```shell
24+
npm install cloudinary-react
25+
```
26+
27+
1. Include the javascript files in your code. For Example:
28+
29+
import {Image} from 'cloudinary-react';
30+
31+
32+
## Setup
33+
34+
In order to properly use this library you have to provide it with a few configuration parameters. All configuration parameters can be applied directly to the element or usign a CloudinaryContext element.
35+
36+
37+
```
38+
ReactDOM.render(
39+
<div>
40+
<h1>Hello, world!</h1>
41+
<Image cloudName="demo" publicId="sample" width="300" crop="scale"/>
42+
{ /* or using the namespace cloudinaryReact */ }
43+
<cloudinaryReact.CloudinaryContext cloudName="demo">
44+
<cloudinaryReact.Image publicId="sample">
45+
<cloudinaryReact.Transformation width="200" crop="scale" angle="10"/>
46+
</cloudinaryReact.Image>
47+
</cloudinaryReact.CloudinaryContext>
48+
</div>,
49+
document.getElementById('example')
50+
);
51+
```
52+
53+
Required:
54+
55+
* `cloudName` - The cloudinary cloud name associated with your Cloudinary account.
56+
57+
Optional:
58+
59+
* `privateCdn`, `secureDistribution`, `cname`, `cdnSubdomain` - Please refer to [Cloudinary Documentation](http://cloudinary.com/documentation/rails_additional_topics#configuration_options) for information on these parameters.
60+
61+
62+
## Usage
63+
64+
The library includes 4 Elements:
65+
66+
* CloudinaryContext
67+
* Image
68+
* Video
69+
* Transformation
70+
71+
### CloudinaryContext
72+
CloudinaryContext allows you to define shared parameters that are applied to all children elements.
73+
74+
### Image
75+
The Image element defines a Cloudinary Image tag.
76+
77+
### Video
78+
The Image element defines a Cloudinary Image tag.
79+
80+
### Transformation
81+
The Transformation element allows you to defined additional transformations on the parent element.
82+
83+
For example:
84+
85+
```
86+
<Image cloudName="demo" publicId="sample">
87+
<Transformation angle="-45"/>
88+
<Transformation effect="trim" angle="45" crop="scale" width="600">
89+
<Transformation overlay="text:Arial_100:Hello" />
90+
</Transformation>
91+
</Image>
92+
```
93+
94+
95+
The Cloudinary Documentation can be found at:
96+
http://cloudinary.com/documentation
97+
98+
## Additional resources
99+
100+
Additional resources are available at:
101+
102+
* [Website](http://cloudinary.com)
103+
* [Documentation](http://cloudinary.com/documentation)
104+
* [Knowledge Base](http://support.cloudinary.com/forums)
105+
* [Documentation for jQuery integration](http://cloudinary.com/documentation/jquery_integration)
106+
* [jQuery image upload documentation](http://cloudinary.com/documentation/jquery_image_upload)
107+
* [jQuery image manipulation documentation](http://cloudinary.com/documentation/jquery_image_manipulation)
108+
* [Image transformations documentation](http://cloudinary.com/documentation/image_transformations)
109+
110+
## Support
111+
112+
You can [open an issue through GitHub](https://github.com/cloudinary/cloudinary_js/issues).
113+
114+
Contact us at [http://cloudinary.com/contact](http://cloudinary.com/contact).
115+
116+
Stay tuned for updates, tips and tutorials: [Blog](http://cloudinary.com/blog), [Twitter](https://twitter.com/cloudinary), [Facebook](http://www.facebook.com/Cloudinary).
117+
118+
119+
## License
120+
121+
Released under the MIT license.
122+
123+
The direct image upload feature of the plugin is based on https://github.com/blueimp/jQuery-File-Upload

0 commit comments

Comments
 (0)