通过 cloudinary 小部件上传图像时获取元数据 UI
get metadata while uploading image by cloudinary widget UI
Is it possible to get metadata of the image being uploaded by
cloudinary widget UI ?
现解-
1.uploading 图片来自 cloudinary widget UI。
2.sending 请求云功能。
3.cloud 函数向 cloudinary 发送请求以通过图像的 public id 获取图像的元数据。
4.recieving cloudinary 图像云函数的元数据。
5.sending 最少 所需的元数据 - (A) 日期 (B) 位置 到客户端。
The whole process takes around 1-1.5 seconds.
消耗的大部分时间是云函数和 cloudinary 之间的通信,用于发送带有 public id 的请求以获取图像的元数据并将响应发送回云函数。根据元数据的大小,大约需要 0.5-1 秒。
有没有更好的解决方案,我可以在客户端本身获取 metadata/exif(图像的日期和位置)。
通过小部件上传时,cloudinary UI 是否可以选择将所需的元数据返回给客户端。
注意 - 我无法为图片上传输入标签,因为它嵌入在 cloudinary 小部件中 UI。
确保将您正在使用的上传预设上的 Image metadata
参数设置为 Yes
:
如果图片包含位置,则应该在上传响应中。
Is it possible to get metadata of the image being uploaded by cloudinary widget UI ?
现解-
1.uploading 图片来自 cloudinary widget UI。
2.sending 请求云功能。
3.cloud 函数向 cloudinary 发送请求以通过图像的 public id 获取图像的元数据。
4.recieving cloudinary 图像云函数的元数据。
5.sending 最少 所需的元数据 - (A) 日期 (B) 位置 到客户端。
The whole process takes around 1-1.5 seconds.
消耗的大部分时间是云函数和 cloudinary 之间的通信,用于发送带有 public id 的请求以获取图像的元数据并将响应发送回云函数。根据元数据的大小,大约需要 0.5-1 秒。
有没有更好的解决方案,我可以在客户端本身获取 metadata/exif(图像的日期和位置)。
通过小部件上传时,cloudinary UI 是否可以选择将所需的元数据返回给客户端。
注意 - 我无法为图片上传输入标签,因为它嵌入在 cloudinary 小部件中 UI。
确保将您正在使用的上传预设上的 Image metadata
参数设置为 Yes
:
如果图片包含位置,则应该在上传响应中。