Skip to content

Commit 204db8e

Browse files
Support image_metadata flag in upload and API
1 parent b3e2cd6 commit 204db8e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/com/cloudinary/Api.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Map resource(String public_id, Map options) throws Exception {
127127
String resourceType = Cloudinary.asString(options.get("resource_type"), "image");
128128
String type = Cloudinary.asString(options.get("type"), "upload");
129129
return callApi(HttpMethod.GET, Arrays.asList("resources", resourceType, type, public_id),
130-
only(options, "exif", "colors", "faces", "pages", "max_results"), options);
130+
only(options, "exif", "colors", "faces", "image_metadata", "pages", "max_results"), options);
131131
}
132132

133133
public Map deleteResources(Iterable<String> publicIds, Map options) throws Exception {

src/com/cloudinary/Uploader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Uploader {
3131
public Uploader(Cloudinary cloudinary) {
3232
this.cloudinary = cloudinary;
3333
}
34-
static final String[] BOOLEAN_UPLOAD_OPTIONS = new String[] {"backup", "exif", "faces", "colors"};
34+
static final String[] BOOLEAN_UPLOAD_OPTIONS = new String[] {"backup", "exif", "faces", "colors", "image_metadata"};
3535

3636
public Map<String, String> buildUploadParams(Map options) {
3737
if (options == null) options = Cloudinary.emptyMap();

0 commit comments

Comments
 (0)