Why DPI matters for forms and print
Some portals, such as the PAN card application, check that a photo is 300 DPI. Print shops use DPI to decide how large to print. Changing DPI does not add or remove pixels, it only changes how big the image prints.
We update both places a JPG can store DPI, the JFIF header and the EXIF data, so Windows, Photoshop and upload portals all read the same value.