'Shopify Metafiled using img src to display pic

Is there any way to squeeze <img src="//cdn.shopify...> url in the following code or any other code:

{{ product.metafields.my_fields.file | img_tag }} 

Trying to save the effort of having to reupload all images in shopify files metafield. All images are already available on shopify CDN.



Solution 1:[1]

Your question is not easy to answer. First off, it almost begs questions. Like, if your images are already present and available on the CDN, why are you even having trouble rendering them? If your images are already present on the CDN, why would you go to the considerable trouble to store references to them as Metafield resources? It seems to me, that the answer here is for you to not use Metafields, and simply render images when and where needed, since they are already present on the CDN, ie) present in the store, and available to Liquid.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 David Lazar