How to get Exif data in json response on upload?
I'm uploading an image in an Express route and I get a json respsonse. Right now I only get the following response from Cloudinary when I upload a file:
"fieldname": "imageUrl",
"originalname": "IMG_1477.jpeg",
"encoding": "7bit",
"mimetype": "image/jpeg",
"path": "https://res.cloudinary.com/dt8b5pu9l/image/upload/v1652319149/movie-project/yqp13ntxaklzphbjiyhz.jpg",
"size": 952590,
"filename": "movie-project/yqp13ntxaklzphbjiyhz"
How can I get extra data from the file in the json response? Like some of the image metadata, in particular metadata relating to GPS and time taken and things like that. I want this data to be available to store in MongoDB along with the newly created filepath from Cloudinary.
Any help would be greatly appreciated.
-
Hi,
We don't display the EXIF information when using client-side listing but you can use server-side - Admin API list method (https://cloudinary.com/documentation/admin_api#get_the_details_of_a_single_resource) and pass `image_metadata=true` as the param and that will return the EXIF info.
Hope you find it useful!
Regards,
Wissam
Please sign in to leave a comment.
Comments
1 comment