From what I understand, this snippet would return the aspect ratio of whatever image in question. Unfortunately I’m not proficient in javascript and have no idea how to use it with metafields.
What metafield type would I use to run this snippet and how can I dynamically insert the url of my metafield image file into this snipper?