How to set a photo to 300 DPI
Open Image DPI converter, choose 300 DPI, and download.
Is your image big enough?
For a 10 × 15 cm print at 300 DPI you need about 1200 × 1800 pixels. Changing DPI doesn't add pixels.
Nothing else changes
The picture itself isn't touched, only the stored print setting.