Glossy BSDF on Image Texture with transparency

I am new to blender and I am trying to add gloss to my image and it works, except the transparency on the image is black instead of transparent and I have no idea how to solve it with nodes. What do I have to do to make the black parts of the Image Texture transparent?

This is what I came up with:


Just use the Principled BSDF, connect the alpha output from the image into the alpha input from the Principled node, and set the roughness to whatever value you need.

If the image doesn’t has alpha but you instead need to map black to transparent, then use the color output of the image instead of the alpha, Blender will read white as opaque and black as transparent