Resolution means wildly different things to wildly different people. And a image has many resolution metrics. It has:
- A pixel resolution
- A Color resolution
- A Unit conversion resolution (PPI, DPI etc)
- The there are some even odder rarely seen resolutions
Like the subpixel resolution of a lense on the sensor*
...
So the term resolution is heavily overloaded, and Very often misunderstood.
Images do not have physical unit resolutions on digital media
We have gone over this subject quite many times on this forum. And the consensus is that the physical measurement conversion values do not apply on digital media as long as they stay digital. So the resolution of a jpeg image is the amount of pixels you have. Because as you correctly put it different devices have different sizes.
Problem arises when you output stuff to physical media
The confusion arises because the technology of printing something to paper is wildly different form making images on screen. Now people formfrom a print background will be somewhat obsessed with the resolution of the image. What they call resolution is actually just a conversion factor from pixels to physical units for their output device. (theyThey have pixels to spare so they can output at different resolutions.)
This resolution is meaningless for screens. But people aren't entirely attuned to different mediums. So you commonly see some print designers design for screen as if it was a printer.
DPI is just metadata, its just a expression of wish that the printer place this image at this size. ItsIt's useful for many tasks so you dont allaysdon't always need to resize the image. But that's all it is.
But these guys came first so they have already manipulated perceptions so they have dibs on image resolution as a topic. Right or wrong.
* ImI'm just saying this because iI have dealt with this kind of stuff.