{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpc.atsuhiro-me.net%2Fentry%2F2015%2F04%2F30%2F215643\" title=\"Python\u306ePillow\u3067\u753b\u50cf\u51e6\u7406 - \u307f\u30fc\u306e\u307a\u30fc\u3058\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","version":"1.0","url":"https://pc.atsuhiro-me.net/entry/2015/04/30/215643","author_url":"https://blog.hatena.ne.jp/atsuhiro-me/","author_name":"atsuhiro-me","provider_name":"Hatena Blog","blog_url":"https://pc.atsuhiro-me.net/","blog_title":"\u307f\u30fc\u306e\u307a\u30fc\u3058","categories":["Python"],"title":"Python\u306ePillow\u3067\u753b\u50cf\u51e6\u7406","height":"190","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/a/atsuhiro-me/20151104/20151104005458.png","published":"2015-04-30 21:56:43","provider_url":"https://hatena.blog","description":"Python\u3067\u753b\u50cf\u51e6\u7406\u3092\u3059\u308b\u306b\u306f\uff0copencv\u306a\u3069\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u6709\u540d\u307f\u305f\u3044\u3067\u3059\u304c\uff0c\u5358\u7d14\u306a\u753b\u50cf\u51e6\u7406\u306a\u3089\u3070Pillow\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u7c21\u5358\u307f\u305f\u3044\u306a\u306e\u3067\uff0c\u4f7f\u3044\u65b9\u3092\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\uff0e \u74b0\u5883 : Python3.4.2 on Mac OS X 10.10.3 \u30ea\u30f3\u30af Pillow Docs \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ sudo pip3 install pillow \u753b\u50cf\u8aad\u307f\u8fbc\u307f from PIL import Image img = Image.open(\"background.png\") if img.mode != \"RGB\": img = img.convert(\"RGB\") width, height\u2026","type":"rich"}