Save Meta Data for Media Assets #3419
Replies: 5 comments
-
Wondering if this metadata be stored in the repo files along with the src url? Or is it just stored under the hood by Tina Cloud? I'm assuming the GraphQL will respond with an object instead of a string for all - data: {
- myImg: "blah.png"
- }
+ data: {
+ myImg: {
+ src: "blah.png",
+ format: ""
+. }
+. }
+ } |
Beta Was this translation helpful? Give feedback.
-
Having width & height would be amazing, as this would allow far easier sizing for the next/image component, allowing better optimisation. |
Beta Was this translation helpful? Give feedback.
-
Yes, having a way to retrieve the dimensions of images from the query result would be awesome. For example the output could look like: {
src: 'foo.img',
height: 100,
width: 200,
format: 'jpeg'
} |
Beta Was this translation helpful? Give feedback.
-
Also a blurhash could be saved there that would be passed as the blurDataURL to the next/image or others. That would save a ton of workarounds at build time |
Beta Was this translation helpful? Give feedback.
-
I think it makes sense to also have a label here that can be used as alt text. |
Beta Was this translation helpful? Give feedback.
-
I'd like to access metadata associated with media assets, such as filesize, file type, extension, dimensions, date created, etc.
Beta Was this translation helpful? Give feedback.
All reactions