want exif data of the image through url without image download
do we have a way where i can say
res.cloudinary.com/account/image/upload/public_id/metadata.json or exif.json
to receive just the data without the image content
if you have only in c# library kindly share that one as well
Regards & Thanks
-
Currently, we don't provide EXIF or metadata in JSON that is directly accessible through a URL.
However, you can use our API to get the data for a single resource: https://cloudinary.com/documentation/admin_api#details_of_a_single_resource
For example, running on a test image:
GET /resources/image/upload/test_image_1?faces=1&colors=1&exif=1Our API returned the following:
URL: http://res.cloudinary.com/guillaume/image/upload/v1533206413/test_image_1.jpg {"public_id"=>"test_image_1", "format"=>"jpg", "version"=>1533206413, "resource_type"=>"image", "type"=>"upload", "created_at"=>"2018-08-02T10:40:13Z", "bytes"=>52534, "width"=>453, "height"=>604, "url"=>"http://res.cloudinary.com/guillaume/image/upload/v1533206413/test_image_1.jpg", "secure_url"=>"https://res.cloudinary.com/guillaume/image/upload/v1533206413/test_image_1.jpg", "next_cursor"=>"4b4b774be86d95c9a49d1e76fcbe8c8ee8170fa43d25090f3baa0c041e811b9a", "derived"=>[], "exif"=>{}, "faces"=>[], "colors"=>[["#707360", 16.9], ["#31291A", 12.0], ["#837B6F", 8.7], ["#695D41", 7.8], ["#253A1F", 7.7], ["#38261A", 7.6], ["#646145", 5.9], ["#131310", 4.5], ["#7C8B7F", 4.4], ["#30371F", 2.9], ["#B7C6CA", 2.8], ["#D1D4E4", 2.4], ["#45633B", 1.6], ["#919096", 1.5], ["#252B29", 1.4], ["#A8B8B1", 1.3], ["#758889", 1.2], ["#646749", 1.2], ["#5B6646", 1.1], ["#6D4B36", 1.0], ["#3A1709", 0.9], ["#741A12", 0.7]], "predominant"=>{"google"=>[["gray", 36.9], ["brown", 27.4], ["black", 17.9], ["green", 9.2], ["white", 2.4], ["red", 1.6]], "cloudinary"=>[["gray", 36.9], ["black", 17.9], ["brown", 16.3], ["olive", 11.1], ["green", 9.2], ["white", 2.4], ["red", 1.6]]}, "pages"=>1, "usage"=>{}, "profiling_data"=>[{"cpu"=>8000, "real"=>33884, "action"=>{"action"=>"eyedea", "presize"=>[453, 604]}}], "slot_token"=>"991776", "original_filename"=>"pizza", "etag"=>"478108490e990bf1dcfa13183da9c4fb"}Please let us know if you have any further question.
0 -
I found the following code in the cloudinary documentation, but it is not working fine. I couldn't retreive metadata for the images.
The code which I used,
let getImageList = (data, successCB, failureCB) => {try {letresult=cloudinary.v2.api.resources({ image_metadata:true }, function(error,result) {console.log("result", result);if (result) {successCB(result);}});} catch (err) {failureCB(err);}};Help me to retrieve image_metadata0 -
Can you please open a ticket at support@cloudinary.com with your exact information including cloudname?
0
Post is closed for comments.
Comments
3 comments