This image was generated by using the following prompt:
Prompt: A smiling cool man wearing sunglasses with his arms stretched out, isolated light blue background.
Negative prompt: (worst quality, low quality, normal quality:1.8).
In Photoshop, create a new text object.
Right click the text layer to add a Blending Option of Drop Shadow.
Rasterize the Type and the Layer Style.
This is optional. [Control + T] to resize the text object like this.
Add a mask to the text object layer.
Let’s lower the opacity, so we can see the background.
Select a hard brush.
Zoom in, and start painting (in black color) on the part of the text object that is overlapping the background like this.
The result should look like this.
Increase the text object layer’s opacity back to 100%.
This is the end of the tutorial. 🙂