{"id":17227,"date":"2026-09-08T17:43:21","date_gmt":"2026-09-08T08:43:21","guid":{"rendered":"http:\/\/www.gisdeveloper.co.kr\/?p=17227"},"modified":"2026-09-08T17:54:02","modified_gmt":"2026-09-08T08:54:02","slug":"dpi%eb%a5%bc-%ea%b5%ac%ed%98%84%ed%95%98%eb%8a%94-2%ea%b0%80%ec%a7%80-%eb%b0%a9%ec%8b%9d","status":"publish","type":"post","link":"http:\/\/www.gisdeveloper.co.kr\/?p=17227","title":{"rendered":"DPI\ub97c \uad6c\ud604\ud558\ub294 2\uac00\uc9c0 \ubc29\uc2dd"},"content":{"rendered":"<p>\ud55c\uac00\uc9c0\ub294 \uc774\ubbf8 \uc54c\uace0 \uc788\ub358 \uc0ac\uc6a9\ud574 \uc654\ub358 \ubc29\uc2dd\uc785\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"javascript\">\r\nconst DPR = window.devicePixelRatio;\r\nconst DPI = DPR * 96;\r\n<\/pre>\n<p>\ub450\ubc88\uc9f8\ub294 \uc880\ub354 \uc815\ud655\ud55c DPI\ub97c \uc5bb\ub294 \ubc29\uc2dd\uc774\ub77c\uace0 \ud569\ub2c8\ub2e4.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"javascript\">\r\nfunction getExactDPI() {\r\n  for (let dpi = 1; dpi < 600; dpi++) {\r\n    if (window.matchMedia(`(max-resolution: ${dpi}dpi)`).matches) {\r\n      return dpi;\r\n    }\r\n  }\r\n  return 96; \/\/ \uae30\ubcf8\uac12\r\n}\r\n<\/pre>\n<p>\uc5b4\ucc0c\ub418\uc5c8\ub4e0 \uc6f9\uc5d0\uc11c DPI\ub294 \ubcf4\uc548\uc815\ucc45 \uc0c1 \uc815\ud655\ud55c \uac12\uc740 \uc5bb\uae30 \uc5b4\ub835\ub2e4\uace0 \ud569\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud55c\uac00\uc9c0\ub294 \uc774\ubbf8 \uc54c\uace0 \uc788\ub358 \uc0ac\uc6a9\ud574 \uc654\ub358 \ubc29\uc2dd\uc785\ub2c8\ub2e4. const DPR = window.devicePixelRatio; const DPI = DPR * 96; \ub450\ubc88\uc9f8\ub294 \uc880\ub354 \uc815\ud655\ud55c DPI\ub97c \uc5bb\ub294 \ubc29\uc2dd\uc774\ub77c\uace0 \ud569\ub2c8\ub2e4. function getExactDPI() { for (let dpi = 1; dpi < 600; dpi++) { if (window.matchMedia(`(max-resolution: ${dpi}dpi)`).matches) { return dpi; } } return 96; \/\/ \uae30\ubcf8\uac12 } \uc5b4\ucc0c\ub418\uc5c8\ub4e0 \uc6f9\uc5d0\uc11c DPI\ub294 \ubcf4\uc548\uc815\ucc45 \uc0c1 &hellip; \n\n<p class=\"link-more\"><a href=\"http:\/\/www.gisdeveloper.co.kr\/?p=17227\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;DPI\ub97c \uad6c\ud604\ud558\ub294 2\uac00\uc9c0 \ubc29\uc2dd&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-17227","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/17227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17227"}],"version-history":[{"count":4,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/17227\/revisions"}],"predecessor-version":[{"id":17231,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/17227\/revisions\/17231"}],"wp:attachment":[{"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17227"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gisdeveloper.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}