Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Created May 9, 2014 12:57
Show Gist options
  • Save dasgoll/0fa75ec3146145dcd319 to your computer and use it in GitHub Desktop.
Save dasgoll/0fa75ec3146145dcd319 to your computer and use it in GitHub Desktop.
Suppose if the resolution of a mobile phone is 1920*1080 and diagonal size is 5 inch then the ppi will be 441 but how to calculate it??
Assuming the pixels are square. If they are not, you need the actual L and H dimensions.
the diagonal is √(1920² + 1080²) = 2203
2203 pixels / 5 inch = 441 ppi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment