DPI and PPI
Dots or pixels per inch: how many pixels are used for each inch when an image is printed or a PDF page is rendered.
A PDF page is measured in inches, not pixels. When you turn a page into an image, the DPI decides how many pixels you get: a US Letter page at 72 DPI is 612 × 792 pixels, at 150 DPI about 1275 × 1650, and at 300 DPI about 2550 × 3300.
Use 72 to 150 DPI for screens and email, and 300 DPI for printing or for text you want to stay crisp. Higher DPI means a much larger file.
For a photo, DPI is only a label for printing; the pixel dimensions are what matter. Changing the DPI number alone doesn't change the file size.