How to change the background color of photos in ps

First, open the photo through PS, and Ctrl+J copies a background layer.

2. Click "Quick Selection Tool" on the toolbar to select the background color of the photo.

Third, click Adjust Edges on the Quick Select toolbar.

4. Adjust the options in this window to eliminate the residual red on the edge, input it into "New Layer" and click "OK".

5.Ctrl+Shift+N creates a new blank layer, drags it below the layer you just entered, then selects a color in the swatch, and Alt+Del fills it in the blank layer, and the step of changing the background color of the photo is completed.