I have been trying to write a function that adds links to available image sizes below each inserted image in a post.
I know there is a function get_intermediate_image_sizes
but it works only within a Loop
for attachment pages.
I need a function that allows me to fetch available image sizes using image id as argument. Can anyone suggest a way out?