1. Open Photoshop. Open Image to apply Expand & Contract commands.
2. Select the Magic Wand Tool and click on the white background area around the picture.
3. Select > Inverse
You will get following selection. Now let us apply Contract Command.
4. Select > Modify > Contract (Contract by 20 pixels)
5. Go back to the original selection and apply Expand Command.
6. Select > Modify > Expand (Expand by 7 pixels)