attachinary
attachinary copied to clipboard
Storing the metadata
While the gem already stores the picture dimensions, I think it would be great to also store all available metadata (EXIF, GPS, etc...). Am I the only one with this need?
I agree, it would be neat and useful. However, that is feature that you'd need to request from cloudinary. When file is uploaded, cloudinary server returns json like this:
{
url: 'http://res.cloudinary.com/demo/image/upload/v1312461204/sample.jpg',
secure_url: 'https://d3jpl91pxevbkh.cloudfront.net/demo/image/upload/v1312461204/sample.jpg',
public_id: 'sample',
version: '1312461204',
width: 864,
height: 564,
format: 'png',
resource_type: 'image',
signature: 'abcdefgc024acceb1c5baa8dca46797137fa5ae0c3'
}
Attachinary just stores what is provided by cloudinary. You can try to contact cloudinary support, or create issue in here: https://github.com/cloudinary/cloudinary_gem/issues?state=open
Not according to this:
"By setting the 'exif' parameter to true, Cloudinary's API can return the image's metadata (see our reference documentation). In the sections above we've shown how to use the Admin API for fetching information of previously uploaded images. You can also request this information while uploading the photos, so it is returned as part of an upload response."
on this page: http://cloudinary.com/blog/api_for_extracting_semantic_image_data_colors_faces_exif_data_and_more
Hey, didn't know about this :) Would be a nice thing to have. I'll add it to my TODO list, but feel free to submit pull request for it :)
Is this still on your to-do list? I could have a go at it. What was the general implementation you had in mind?