Extract EXIF information from your images in Glide

So the other day I raised a question in the community on how to extract the EXIF information from an image, I finally managed to do it with help of culinary and a little bit of code. We’ll need a webhook and then a few bits of code that I’ll paste below.
Hope it all helps:

You can find all the information here: Admin API Reference | Cloudinary

Here’s the cUrl code that you have to paste in your HTTP module, in the URL section:

https://<API_KEY>:<API_SECRET>@api.cloudinary.com/v1_1/<cloud_name>/resources/image/upload/your_image_link_from_glide

Sample Response:

{
  "resources": [
    {
      "asset_id": "b1ce1d159bc3696e5a74d8b8aefbe707",
      "public_id": "face_center",
      "format": "jpg",
      "version": 1333013579,
      "resource_type": "image",
      "type": "upload",
      "created_at": "2012-03-29T09:32:59Z",
      "bytes": 128891,
      "width": 283,
      "height": 424,
      "backup": true,
      "access_mode": "public",
      "url": "http://res.cloudinary.com/demo/image/upload/v1333013579/face_center.jpg",
      "secure_url": "https://.../image/upload/v1333013579/face_center.jpg"
    },
    {
      "asset_id": "835d1cf89bd7c1b84dc4f53d35bc235f",
      "public_id": "12208495",
      "format": "jpg",
      "resource_type": "image",
      "type": "facebook",
      "created_at": "2012-10-06T17:18:52Z",
      "bytes": 0,
      "access_mode": "public",
      "url": "http://res.cloudinary.com/demo/image/facebook/12208495.jpg",
      "secure_url": "https://.../image/facebook/12208495.jpg"
    },

And obviously thanks to @Mark_Turrell for pushing me to my limits of knowledge :slight_smile: :slight_smile:

9 Likes

Very cool :innocent::star2::star2::smiley:

@PabloMFalero seems as you exposed the cloudinary keys in the video - which might not be a problem for you. Just for info

1 Like

is a test account, but I can remake the video, thanks Kirvo :slight_smile:

1 Like

@PabloMFalero don’t do it for my sake😜 Just wanted to let you know. For a production solution you might consider whether the cloudinary keys can be found by inspection.
Seems to be a bit of a problem when using external apis.

1 Like