Skip to content

Commit a2fa28c

Browse files
committed
2 parents 2d609bc + d85b1f9 commit a2fa28c

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ For Java, Cloudinary provides a library for simplifying the integration even fur
1515

1616
**Note:** This Java library is intended mainly for Web applications. For **Android** integration, there is a dedicated library with a similar interface: https://github.com/cloudinary/cloudinary_android
1717

18+
## Getting started guide
19+
![](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **Take a look at our [Getting started guide for Java](http://cloudinary.com/documentation/java_integration#getting_started_guide)**.
20+
1821
## Setup ######################################################################
1922

2023
The cloudinary_java library is available in [Maven Central](http://repo1.maven.org/maven/). To use it, add the following dependency to your pom.xml:
2124

2225
<dependency>
2326
<groupId>com.cloudinary</groupId>
2427
<artifactId>cloudinary</artifactId>
25-
<version>1.0.4</version>
28+
<version>1.0.8</version>
2629
</dependency>
2730

2831
Alternatively, download cloudinary_java from [here](https://github.com/cloudinary/cloudinary_java/tarball/master)
@@ -60,8 +63,7 @@ Generating a 120x90 thumbnail based on automatic face detection of the Facebook
6063

6164
![Facebook 90x120](https://res.cloudinary.com/demo/image/facebook/c_thumb,g_face,h_90,w_120/billclinton.jpg "Facebook 90x200")
6265

63-
For more details, see our documentation for embedding [Facebook](http://cloudinary.com/documentation/facebook_profile_pictures) and [Twitter](http://cloudinary.com/documentation/twitter_profile_pictures) profile pictures.
64-
66+
For more details, see our documentation for embedding [Facebook](http://cloudinary.com/documentation/facebook_profile_pictures) and [Twitter](http://cloudinary.com/documentation/twitter_profile_pictures) profile pictures.
6567

6668
## Usage
6769

@@ -112,6 +114,8 @@ Same goes for Twitter:
112114

113115
cloudinary.url().type("twitter_name").generate("billclinton.jpg")
114116

117+
![](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **See [our documentation](http://cloudinary.com/documentation/java_image_manipulation) for more information about displaying and transforming images in Java**.
118+
115119
### Upload
116120

117121
Assuming you have your Cloudinary configuration parameters defined (`cloud_name`, `api_key`, `api_secret`), uploading to Cloudinary is very simple.
@@ -133,7 +137,9 @@ You can also specify your own public ID:
133137
cloudinary.url().generate("sample_remote.jpg")
134138

135139
http://res.cloudinary.com/demo/image/upload/sample_remote.jpg
136-
140+
141+
![](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **See [our documentation](http://cloudinary.com/documentation/java_image_upload) for plenty more options of uploading to the cloud from your Java code**.
142+
137143
### imageTag
138144

139145
Returns an html image tag pointing to Cloudinary.
@@ -143,6 +149,18 @@ Usage:
143149
cloudinary.url().format("png").transformation(new Transformation().width(100).height(100).crop("fill")).imageTag("sample")
144150

145151
# <img src='http://res.cloudinary.com/cloud_name/image/upload/c_fill,h_100,w_100/sample.png' height='100' width='100'/>
152+
153+
### imageUploadTag
154+
155+
Returns an html input field for direct image upload, to be used in conjunction with [cloudinary\_js package](https://github.com/cloudinary/cloudinary_js/). It integrates [jQuery-File-Upload widget](https://github.com/blueimp/jQuery-File-Upload) and provides all the necessary parameters for a direct upload.
156+
157+
Usage:
158+
159+
Map options = Cloudinary.asMap("resource_type", "auto");
160+
Map htmlOptions = Cloudinary.asMap("alt", "sample");
161+
String html = cloudinary.uploader().imageUploadTag("image_id", options, htmlOptions);
162+
163+
![](http://res.cloudinary.com/cloudinary/image/upload/see_more_bullet.png) **See [our documentation](http://cloudinary.com/documentation/java_image_upload#direct_uploading_from_the_browser) for plenty more options of uploading directly from the browser**.
146164

147165
## Additional resources ##########################################################
148166

0 commit comments

Comments
 (0)