When we want to print or share high-resolution 300 ppi photos online, open the image size (Ctrl+Alt+I) in the image menu and turn on the Resize image pixels check box. If you want to print, just enter the print size directly. If you want to share it online, first change its resolution, then turn on the Resize image pixels check box and change its pixel size.
Note: When you use this method to reduce the photo, the photo may become softer, so you sometimes need to use the USM sharpening filter to sharpen the photo after reducing the photo.