Skip to content

Instantly share code, notes, and snippets.

@JohnL4
Created January 27, 2021 15:46
Show Gist options
  • Save JohnL4/db85b5b088677e6a5b735ea042faec7b to your computer and use it in GitHub Desktop.
Save JohnL4/db85b5b088677e6a5b735ea042faec7b to your computer and use it in GitHub Desktop.
Physical display pixels/in. = # of pixels on diagonal / diagonal size of monitor
e.g., Phililps PHL 346B1C is a 34" ultra-wide at 3440x1440
PowerShell:
> $d = 3440*3440 + 1440*1440
> [Math]::Sqrt($d) # Pixels on the diagnoal
> [Math]::Sqrt($d)/34 # Pixels/in., matches manufacturer claim of 110 ppi.
Citrix VM on same monitor:
System Information | Components | Display --> "VMware SVGA 3D", 1920 x 853 x 1 Hz (???)
So, PPI = [Math]::Sqrt( 1920*1920 + 853*853) / 34 (same physical monitor size) --> 62 ppi
But I have absolutely no idea how Citrix is scaling this, b/c setting ppi to 62 gives a wrong result.
See https://www.citrix.com/blogs/2018/01/09/making-sense-of-high-resolution-displays-and-dpi-with-citrix-graphics-remoting/
if you really want to have your eyes glazed over.
So, I just used a PPI of 96 pixels/inch and that seems to work well (for my particular environment).
In Gimp, after editing a screenshot generated in citrix and pasted into a local Gimp session on my laptop:
Image | Print size (a.k.a. "print resolution")
Then you can save and export.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment