Say I have an image resource called $img. Is there any way I can read the path of the image, without using .RelPermalink(it pushes the image to public, which I’d like to avoid).
The use case is using it as a variant for partialCached. If there’s another unique way to refer to an image resource, please let me know.
$img.Name is not a valid choice because two images(Page resources) will have the same .Name value based on the path relative to the page.
E.g. content/foo/a.jpg → $img.Name = a.jpg
content/bar/a.jpg → $img.Name = a.jpg
I’d like to distinguish between the above two cases.