View Single Post
Old 07-01-2021, 03:20 AM   #6
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,543
Karma: 19001583
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
What is "original" size?

Say you have a 300 pixel wide png, with 72 dpi, with "width: 3cm" in the css. And say we display it on a screen/device that's physically 96 dpi, but the software is set to 120dpi.

1. image pixel to screen pixel: so 300 screen pixels, 300@96 dpi = 7.9375 cm
2. obey png resolution: 300@72 dpi = 10.5833 cm, i.e. 400 screen pixels (400@96)
3. obey css: 3 cm, 113 screen pixels (113@96)
4. obey png resolution, but with "fake" screen resolution: 300@72 = 500@120, but since the screen is actually 96 dpi, that's 13.2292 cm (500@96)
5. obey css, but with "fake" screen resolution: 3 cm at 120 dpi = 142 screen pixels, 3.75 cm.

I guess you mean 1, but at least 2 and 4 could also be considered to be "original"
Jellby is offline   Reply With Quote