This tutorial mainly uses masks and filters to create a very beautiful border effect in a few simple steps. Masking is a great knowledge when making pictures. If you can use it skillfully, you can create many exquisite effects. !
final effect

1. Create a new file of 450px * 600px with the background filled with green (if you are adding effects directly to the photo, you don’t need to create a new file and just use the photo). Use the rectangular marquee tool to draw a rectangular selection as shown in 1, then press the "Q" key and add a quick mask

<Figure 1>
2. Execute the menu: Filter > Distort > Wave parameter settings as shown in Figure 2, and the effect as shown in Figure 3

<Figure 2>

<Figure 3>
3. Execute the menu: Filter > Pixelate > Fragment, confirm and then execute the menu: Filter > Sharpen > Sharpen. After confirming, press Ctrl + F three times, then press the letter "Q" to enter the normal mode and create a new layer. , press Ctrl + Shift + I to invert the selection and fill it with your favorite color, then fill the background with white, the effect is as shown in Figure 4

<Figure 4>
4. Return to the border layer and double-click the layer to bring up the layer style and select stroke. The parameter settings are as shown in Figure 5. Finally, add your favorite photo to complete the final effect.

<Figure 5>

<Figure 6>