{"id":9751,"date":"2011-07-02T11:16:00","date_gmt":"2011-07-02T11:16:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=9751"},"modified":"2011-07-02T11:16:00","modified_gmt":"2011-07-02T11:16:00","slug":"%ea%b4%b4%ec%9d%b4%ed%95%9c-%ec%98%a4%eb%a5%98","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=9751","title":{"rendered":"\uad34\uc774\ud55c \uc624\ub958"},"content":{"rendered":"<div class=\"desc\">\n        PIL\ub85c \uc791\uc5c5\uc911\uc778\ub370<\/p>\n<p>        Image.fromstring() \uba54\uc18c\ub4dc\ub294 \ubd84\uba85 str\uc744 \ubc1b\uc544\ub2e4\uac00 image\ub85c \ub9cc\ub4e4\uc5b4 \uc8fc\ub294 \uac70\ub77c\uace0 \ub4e4\uc5c8\ub2e4.<br \/>\n        <br \/>\n<a href=\"http:\/\/www.pythonware.com\/library\/pil\/handbook\/image.htm\" target=\"_blank\" title=\"[http:\/\/www.pythonware.com\/library\/pil\/handbook\/image.htm]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n         http:\/\/www.pythonware.com\/library\/pil\/handbook\/image.htm<br \/>\n        <\/a><\/p>\n<p>        \uadf8\ub798\uc11c \uc774\ub807\uac8c \uc37c\ub2e4.<br \/>\n        <br \/>\n        self.wxImg = Image.fromstring(&#8220;L&#8221;, (f.getData().shape[1],f.getData().shape[2]), t.tostring()).convert(&#8216;RGB&#8217;).tostring()<\/p>\n<p>        \uadfc\ub370<br \/>\n        <br \/>\n        self.wxBmp2 = self.wxImg.ConvertToBitmap()<br \/>\n        <br \/>\n        \uc774\ub807\uac8c \uc37c\ub354\ub2c8 &#8220;str\uc740 ConvertToBitmap\uac19\uc740\uac70 \ubaa8\ub978\ub2e4&#8221;\ub294 \uc5d0\ub7ec\ub97c \ub0b4\ubc49\ub294\ub2e4.<\/p>\n<p>        \ubb50\uc5ec&#8230;-_-<\/p>\n<p>        PIL\ubb38\uc11c\uc5d0\uc11c \uad6c\ub77c\uce5c\uaca8?<\/p>\n<p>        \uc0bd\uc9c8\uc880 \ub05d\ub0b4\uc790&#8230;\uc81c\ubc1c&#8230;<\/p>\n<div style=\"width:100%;margin-top:30px;clear:both;height:30px\">\n<div style=\"width:31px;float:left;\">\n<a href=\"\/toolbar\/popup\/abuseReport\/?entryId=2582\" onclick=\"window.open(this.href, 'tistoryThisBlogPopup', 'width=550, height=510, toolbar=no, menubar=no, status=no, scrollbars=no'); return false;\"><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\uc2e0\uace0\" src=\"https:\/\/i0.wp.com\/t1.daumcdn.net\/tistory_admin\/static\/ico\/ico_spam_report.png\" style=\"border:0\"\/><br \/>\n<\/a>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>PIL\ub85c \uc791\uc5c5\uc911\uc778\ub370 Image.fromstring() \uba54\uc18c\ub4dc\ub294 \ubd84\uba85 str\uc744 \ubc1b\uc544\ub2e4\uac00 image\ub85c \ub9cc\ub4e4\uc5b4 \uc8fc\ub294 \uac70\ub77c\uace0 \ub4e4\uc5c8\ub2e4. http:\/\/www.pythonware.com\/library\/pil\/handbook\/image.htm \uadf8\ub798\uc11c \uc774\ub807\uac8c \uc37c\ub2e4. self.wxImg = Image.fromstring(&#8220;L&#8221;, (f.getData().shape[1],f.getData().shape[2]), t.tostring()).convert(&#8216;RGB&#8217;).tostring() \uadfc\ub370 self.wxBmp2 = self.wxImg.ConvertToBitmap() \uc774\ub807\uac8c \uc37c\ub354\ub2c8 &#8220;str\uc740 ConvertToBitmap\uac19\uc740\uac70 \ubaa8\ub978\ub2e4&#8221;\ub294 \uc5d0\ub7ec\ub97c \ub0b4\ubc49\ub294\ub2e4. \ubb50\uc5ec&#8230;-_- PIL\ubb38\uc11c\uc5d0\uc11c \uad6c\ub77c\uce5c\uaca8? \uc0bd\uc9c8\uc880 \ub05d\ub0b4\uc790&#8230;\uc81c\ubc1c&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-9751","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-2xh","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9751"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9751\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9751"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}