{"id":350,"date":"2023-01-30T17:02:09","date_gmt":"2023-01-30T09:02:09","guid":{"rendered":"https:\/\/www.xlogin.us\/help\/docs\/document\/fingerprint-introduction\/devicepixelratio-introduction\/"},"modified":"2023-02-14T10:54:22","modified_gmt":"2023-02-14T02:54:22","slug":"devicepixelratio-introduction","status":"publish","type":"docs","link":"https:\/\/www.xlogin.us\/help\/docs\/fingerprint-introduction\/devicepixelratio-introduction\/","title":{"rendered":"DevicePixelRatio Introduction"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">window.devicePixelRatio is the ratio between the device-physical pixels and device-independent pixels(Dips).<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p class=\"has-medium-font-size\">window.devicePixelRatio = physical pixels\/device independent pixels.<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\">If the user does not select 1.0 for DevicePixelRatio, but rather 2.0, then the resolution detected on the browser is twice the length and width compared with the currently selected length and width, resulting in a double result.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br>Users can check the results of related settings on the browser&nbsp;<strong>&nbsp;<a rel=\"noreferrer noopener\" href=\"https:\/\/johankj.github.io\/devicePixelRatio\/\" target=\"_blank\"><strong>johankj.github<\/strong>&nbsp;<strong>website<\/strong><\/a>.<\/strong>.<br><br><\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>Take iPhone X as an example<\/strong>, resolution * DevicePixelRatio= true resolution of the device: (375*3.0) x (812*3.0)= 1125 x 2436.<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><br><strong><a rel=\"noreferrer noopener\" href=\"https:\/\/xlogin.us\/\" data-type=\"URL\" data-id=\"https:\/\/xlogin.us\/\" target=\"_blank\">XLogin<\/a><\/strong>&nbsp;browser will randomly match the corresponding \"Resolution\"&nbsp;and \"DevicePixelRatio\"&nbsp;according to the operating system selected by the user. Users can set the \"Resolution\"&nbsp;for&nbsp;the computer browsers according to their own needs. The \"DevicePixelRatio\"&nbsp;is all&nbsp;1.0. For&nbsp;mobile browsers, it is best to set the default \"Resolution\"&nbsp;and \"DevicePixelRatio\"&nbsp;randomly&nbsp;generated by the system.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"996\" height=\"697\" src=\"https:\/\/www.xlogin.us\/help\/wp-content\/uploads\/2023\/02\/15-3-1.png\" alt=\"\" class=\"wp-image-1574\" srcset=\"https:\/\/www.xlogin.us\/help\/wp-content\/uploads\/2023\/02\/15-3-1.png 996w, https:\/\/www.xlogin.us\/help\/wp-content\/uploads\/2023\/02\/15-3-1-300x210.png 300w, https:\/\/www.xlogin.us\/help\/wp-content\/uploads\/2023\/02\/15-3-1-768x537.png 768w\" sizes=\"auto, (max-width: 996px) 100vw, 996px\" \/><\/figure>\n\n\n\n<p><br><br><br><\/p>\n","protected":false},"featured_media":0,"parent":780,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-350","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/350","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/comments?post=350"}],"version-history":[{"count":5,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/350\/revisions"}],"predecessor-version":[{"id":1575,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/350\/revisions\/1575"}],"up":[{"embeddable":true,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/780"}],"next":[{"title":"Font Fingerprint Settings","link":"https:\/\/www.xlogin.us\/help\/docs\/fingerprint-introduction\/font-fingerprint-settings\/","href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/355"}],"prev":[{"title":"Mobile Emulation Setting","link":"https:\/\/www.xlogin.us\/help\/docs\/fingerprint-introduction\/mobile-emulation-setting\/","href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/docs\/346"}],"wp:attachment":[{"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/media?parent=350"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.xlogin.us\/help\/wp-json\/wp\/v2\/doc_tag?post=350"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}