Skip to content

Commit 8dfd7e1

Browse files
committed
Update README.md
1 parent 074dad1 commit 8dfd7e1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,21 +101,21 @@ Any image uploaded to Cloudinary can be transformed and embedded using powerful
101101

102102
The following example generates the url for accessing an uploaded `sample` image while transforming it to fill a 100x150 rectangle:
103103

104-
cloudinary.url().transformation(new Transformation().width(100).height(150).crop("fill")).generate("sample.jpg")
104+
cloudinary.url().transformation(new Transformation().width(100).height(150).crop("fill")).generate("sample.jpg");
105105

106106
Another example, emedding a smaller version of an uploaded image while generating a 90x90 face detection based thumbnail:
107107

108-
cloudinary.url().transformation(new Transformation().width(90).height(90).crop("thumb").gravity("face")).generate("woman.jpg")
108+
cloudinary.url().transformation(new Transformation().width(90).height(90).crop("thumb").gravity("face")).generate("woman.jpg");
109109

110110
You can provide either a Facebook name or a numeric ID of a Facebook profile or a fan page.
111111

112112
Embedding a Facebook profile to match your graphic design is very simple:
113113

114-
cloudinary.url().type("facebook").transformation(new Transformation().width(130).height(130).crop("fill").gravity("north_west")).generate("billclinton.jpg")
114+
cloudinary.url().type("facebook").transformation(new Transformation().width(130).height(130).crop("fill").gravity("north_west")).generate("billclinton.jpg");
115115
116116
Same goes for Twitter:
117117

118-
cloudinary.url().type("twitter_name").generate("billclinton.jpg")
118+
cloudinary.url().type("twitter_name").generate("billclinton.jpg");
119119

120120
![](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**.
121121

@@ -125,19 +125,19 @@ Assuming you have your Cloudinary configuration parameters defined (`cloud_name`
125125

126126
The following example uploads a local JPG to the cloud:
127127

128-
cloudinary.uploader().upload("my_picture.jpg", Cloudinary.emptyMap())
128+
cloudinary.uploader().upload("my_picture.jpg", Cloudinary.emptyMap());
129129

130130
The uploaded image is assigned a randomly generated public ID. The image is immediately available for download through a CDN:
131131

132-
cloudinary.url().generate("abcfrmo8zul1mafopawefg.jpg")
132+
cloudinary.url().generate("abcfrmo8zul1mafopawefg.jpg");
133133
134134
http://res.cloudinary.com/demo/image/upload/abcfrmo8zul1mafopawefg.jpg
135135

136136
You can also specify your own public ID:
137137

138-
cloudinary.uploader().upload("http://www.example.com/image.jpg", ObjectUtils.asMap("public_id", "sample_remote"))
138+
cloudinary.uploader().upload("http://www.example.com/image.jpg", ObjectUtils.asMap("public_id", "sample_remote"));
139139

140-
cloudinary.url().generate("sample_remote.jpg")
140+
cloudinary.url().generate("sample_remote.jpg");
141141

142142
http://res.cloudinary.com/demo/image/upload/sample_remote.jpg
143143

@@ -149,7 +149,7 @@ Returns an html image tag pointing to Cloudinary.
149149

150150
Usage:
151151

152-
cloudinary.url().format("png").transformation(new Transformation().width(100).height(100).crop("fill")).imageTag("sample")
152+
cloudinary.url().format("png").transformation(new Transformation().width(100).height(100).crop("fill")).imageTag("sample");
153153

154154
# <img src='http://res.cloudinary.com/cloud_name/image/upload/c_fill,h_100,w_100/sample.png' height='100' width='100'/>
155155

0 commit comments

Comments
 (0)