It only works for direct image link. Meaning, link to the image, not the webpage containing the image(s). You can't use the tag for a gallery.
For example, [img]https://i.imgur.com/1GB6Zle.jpg[/img] will give you:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
I think that's how it goes.