You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cloudinary is a cloud service that offers a solution to a web application's entire image management pipeline.
6
+
## About
7
+
The Cloudinary Java SDK allows you to quickly and easily integrate your application with Cloudinary.
8
+
Effortlessly optimize and transform your cloud's assets.
9
9
10
-
Easily upload images to the cloud. Automatically perform smart image resizing, cropping and conversion without installing any complex software.
11
-
Integrate Facebook or Twitter profile image extraction in a snap, in any dimension and style to match your website’s graphics requirements.
12
-
Images are seamlessly delivered through a fast CDN, and much much more.
10
+
### Additional documentation
11
+
This Readme provides basic installation and usage information.
12
+
For the complete documentation, see the [Java SDK Guide](https://cloudinary.com/documentation/java_integration).
13
13
14
-
Cloudinary offers comprehensive APIs and administration capabilities and is easy to integrate with any web application, existing or new.
14
+
## Table of Contents
15
+
-[Key Features](#key-features)
16
+
-[Version Support](#Version-Support)
17
+
-[Installation](#installation)
18
+
-[Usage](#usage)
19
+
-[Setup](#Setup)
20
+
-[Transform and Optimize Assets](#Transform-and-Optimize-Assets)
21
+
-[File upload](#File-upload)
15
22
23
+
## Key Features
24
+
-[Transform](https://cloudinary.com/documentation/java_video_manipulation) and [optimize](https://cloudinary.com/documentation/java_image_manipulation#image_optimizations) assets (links to docs).
25
+
-[Upload assets to cloud](https://cloudinary.com/documentation/java_image_and_video_upload)
16
26
17
-
Cloudinary provides URL and HTTP based APIs that can be easily integrated with any Web development framework.
27
+
## Version Support
28
+
| SDK Version | Java 6+ |
29
+
|----------------|---------|
30
+
| 1.1.0 - 1.29.0 | V |
18
31
19
-
For Java, Cloudinary provides a library for simplifying the integration even further.
20
-
21
-
**Notes:**
22
-
23
-
* There are three flavors of the library to support different HttpClient versions: cloudinary-http42, cloudinary-http43 and cloudinary-http44.
24
-
* For Android there's a separate library available at https://github.com/cloudinary/cloudinary_android
25
-
26
-
## Getting started guide
27
-
**Take a look at our [Getting started guide for Java](https://cloudinary.com/documentation/java_integration#getting_started_guide)**.
The cloudinary_java library is available in [Maven Central](https://repo1.maven.org/maven2/com/cloudinary/). To use it, add the following dependency to your pom.xml :
32
+
## Installation
33
+
The cloudinary_java library is available in [Maven Central](https://mvnrepository.com/artifact/com.cloudinary/cloudinary-core). To use it, add the following dependency to your pom.xml :
32
34
33
35
```xml
34
36
<dependency>
@@ -41,52 +43,17 @@ The cloudinary_java library is available in [Maven Central](https://repo1.maven.
41
43
Alternatively, download cloudinary_java from [here](https://repo1.maven.org/maven2/com/cloudinary/cloudinary-core/1.29.0/cloudinary-core-1.29.0.jar) and [here](https://repo1.maven.org/maven2/com/cloudinary/cloudinary-http44/1.29.0/cloudinary-http44-1.29.0.jar)
42
44
and see [build.gradle](https://github.com/cloudinary/cloudinary_java/blob/master/cloudinary-http44/build.gradle) for library dependencies.
43
45
44
-
## Try it right away
45
-
46
-
Sign up for a [free account](https://cloudinary.com/users/register/free) so you can try out image transformations and seamless image delivery through CDN.
47
-
48
-
*Note: Replace `demo` in all the following examples with your Cloudinary's `cloud name`.*
49
-
50
-
Accessing an uploaded image with the `sample` public ID through a CDN:
For more details, see our documentation for embedding [Facebook](https://cloudinary.com/documentation/facebook_profile_pictures) and [Twitter](https://cloudinary.com/documentation/twitter_profile_pictures) profile pictures.
77
-
78
46
## Usage
47
+
### Setup
79
48
80
-
### Configuration
81
-
82
-
Each request for building a URL of a remote cloud resource must have the `cloud_name` parameter set.
83
-
Each request to our secure APIs (e.g., image uploads, eager sprite generation) must have the `api_key` and `api_secret` parameters set.
49
+
Each request for building a URL of a remote cloud resource must have the `cloud_name` parameter set.
50
+
Each request to our secure APIs (e.g., image uploads, eager sprite generation) must have the `api_key` and `api_secret` parameters set.
84
51
See [API, URLs and access identifiers](https://cloudinary.com/documentation/solution_overview#account_and_api_setup) for more details.
85
52
86
-
Setting the `cloud_name`, `api_key` and `api_secret` parameters can be done either directly in each call to a Cloudinary method,
53
+
Setting the `cloud_name`, `api_key` and `api_secret` parameters can be done either directly in each call to a Cloudinary method,
87
54
by when initializing the Cloudinary object, or by using the CLOUDINARY_URL environment variable / system property.
88
55
89
-
The entry point of the library is the Cloudinary object.
56
+
The entry point of the library is the Cloudinary object.
90
57
```java
91
58
Cloudinary cloudinary =newCloudinary();
92
59
```
@@ -105,8 +72,8 @@ Another example of setting the configuration parameters by providing the CLOUDIN
105
72
106
73
Cloudinary cloudinary = new Cloudinary("cloudinary://123456789012345:abcdeghijklmnopqrstuvwxyz12@n07t21i7");
107
74
108
-
### Embedding and transforming images
109
-
75
+
### Transform and Optimize Assets
76
+
-[See full documentation](https://cloudinary.com/documentation/java_image_manipulation)
110
77
Any image uploaded to Cloudinary can be transformed and embedded using powerful view helper methods:
111
78
112
79
The following example generates the url for accessing an uploaded `sample` image while transforming it to fill a 100x150 rectangle:
@@ -115,38 +82,29 @@ The following example generates the url for accessing an uploaded `sample` image
**See [our documentation](https://cloudinary.com/documentation/java_image_manipulation) for more information about displaying and transforming images in Java**.
139
-
140
-
### Upload
141
-
99
+
### File upload
142
100
Assuming you have your Cloudinary configuration parameters defined (`cloud_name`, `api_key`, `api_secret`), uploading to Cloudinary is very simple.
143
-
144
-
The following example uploads a local JPG to the cloud:
101
+
102
+
The following example uploads a local JPG to the cloud:
**See [our documentation](https://cloudinary.com/documentation/java_image_upload) for plenty more options of uploading to the cloud from your Java code**.
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.
String html = cloudinary.uploader().imageUploadTag("image_id", options, htmlOptions);
192
-
```
193
-
194
-
**See [our documentation](https://cloudinary.com/documentation/java_image_upload#direct_uploading_from_the_browser) for plenty more options of uploading directly from the browser**.
*[Upload API documentation](https://cloudinary.com/documentation/upload_images)
207
-
208
-
## Support
209
-
210
-
You can [open an issue through GitHub](https://github.com/cloudinary/cloudinary_java/issues).
211
-
212
-
Contact us [https://cloudinary.com/contact](https://cloudinary.com/contact)
213
-
214
-
Stay tuned for updates, tips and tutorials: [Blog](https://cloudinary.com/blog), [Twitter](https://twitter.com/cloudinary), [Facebook](https://www.facebook.com/Cloudinary).
215
-
216
-
## Join the Community ##########################################################
217
-
218
-
Impact the product, hear updates, test drive new features and more! Join [here](https://www.facebook.com/groups/CloudinaryCommunity).
-[Open a Github issue](https://github.com/CloudinaryLtd/cloudinary_java/issues) (for issues related to the SDK)
131
+
-[Open a support ticket](https://cloudinary.com/contact) (for issues related to your account)
132
+
133
+
## About Cloudinary
134
+
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.
135
+
136
+
## Additional Resources
137
+
-[Cloudinary Transformation and REST API References](https://cloudinary.com/documentation/cloudinary_references): Comprehensive references, including syntax and examples for all SDKs.
138
+
-[MediaJams.dev](https://mediajams.dev/): Bite-size use-case tutorials written by and for Cloudinary Developers
139
+
-[DevJams](https://www.youtube.com/playlist?list=PL8dVGjLA2oMr09amgERARsZyrOz_sPvqw): Cloudinary developer podcasts on YouTube.
-[Code Explorers and Feature Demos](https://cloudinary.com/documentation/code_explorers_demos_index): A one-stop shop for all code explorers, Postman collections, and feature demos found in the docs.
142
+
-[Cloudinary Roadmap](https://cloudinary.com/roadmap): Your chance to follow, vote, or suggest what Cloudinary should develop next.
143
+
-[Cloudinary Facebook Community](https://www.facebook.com/groups/CloudinaryCommunity): Learn from and offer help to other Cloudinary developers.
0 commit comments