In the GIMP:
- Select a portion the main subject of your photo and as much background as you wish to include.
- Fill the selection with white.
- Reduce the selection (Select > Shrink) by 20-50 pixels. Experiment to get a frame width you like.
- Cut out the center of the frame (Ctrl-X in Windows).


