As the most popular image optimization tool, PhotoShop can help you enhance pictures with multiple visual effect. However, PhotoShop provides us very complex features, thus you may not know how to begin. So let's start from the very beginning. Following will show you how to add a border to your pictures
Software you need:
Photoshop - The most professional image editor and enhancement tool in the world.
Step by step guide
Lauch PhotoShop and open your pictures
Click the shortcut of PhotopShop to launch software, and then load source picture by click File - > Open in the Menu, the source image will be loaded

Run Lasso Tool
Click the lasso icon on the tool palette to run the "Lasso" selection tool, then click the mouse on an image portion through which you want the border to run. For example, if you want to create a border around a person, click a place on the image where the person's image meets the picture's background.
Select abject your wanna add the border
Drag the mouse around the object to which you want to add the border, then release the mouse to complete the selection. Click the "Select" menu, then click "Modify." Click "Border" to open a dialog box for specifying a border width.
Type a number between 15 and 150 to indicate the border's width in pixels, then click "OK" to create the border from the selection you outlined in step 3.
Click the upper color swatch at the bottom of the tool palette. Elements will open a dialog box allowing you to specify a foreground color. Click a color, then click "OK" to close the dialog box. The "Gradient fill" tool will blend the color you chose into the background color, which you'll pick next.
Click the lower color swatch at the bottom of the tool palette, then use the previous step's instructions to choose a background color for the "Gradient fill" tool.
Click the tool palette's multi-colored rectangle to run the "Gradient fill" tool. Click the first dropdown list above the canvas to open the "Gradient picker" window, then click an icon for the gradient style you want for the border.
Click the mouse above the border you made in step 4, then drag the mouse down until the mouse cursor is below the border. Release the mouse to add the gradient fill and complete the border.
