Removing edge halos after cutout

When we cutout images specially with automatic selection tool in photoshop and apply contrasting background behind it, we often get unwanted fringing that’s comprised of stray pixels, and looks like a fuzzy halo around certain parts of the image. With the help of defringe option in photoshop, we can get rid of such fringes of the image.

After opening image in photoshop, with selection of foreground layer click Layers > Matting> Defringe. Enter pixel value for defringing. Really easy way to remove it, isn’t it?