{"url":"https://petitviolet.hatenablog.com/entry/20110926/1317004331","provider_name":"Hatena Blog","published":"2011-09-26 11:32:11","blog_title":"petitviolet_blog","width":"100%","blog_url":"https://petitviolet.hatenablog.com/","height":"190","author_url":"https://blog.hatena.ne.jp/petitviolet/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpetitviolet.hatenablog.com%2Fentry%2F20110926%2F1317004331\" title=\"Python Image Library(PIL)\u306e\u4f7f\u3044\u65b9 - petitviolet_blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Python Image Library(PIL)\u306e\u4f7f\u3044\u65b9","version":"1.0","categories":["python","\u5099\u5fd8\u9332"],"image_url":"http://cdn-ak.f.st-hatena.com/images/fotolife/p/petitviolet/20110926/20110926112923.jpg","type":"rich","author_name":"petitviolet","provider_url":"https://hatena.blog","description":"\u307e\u305f\u3057\u3066\u3082python chanllenge\u3067\u3059. PIL\u3092\u7528\u3044\u308b\u3053\u3068\u306b\u306a\u3063\u305f\u306e\u3067\u304a\u52c9\u5f37. \u4eca\u56de\u306f\u30b3\u30fc\u30c9\u3068\u3057\u3066\u5168\u90e8\u66f8\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f. PIL\u3092\u7528\u610f easy_install PIL\u3082\u3057\u304f\u306f pip install PIL\u3068\u304b\u3067\u3044\u3051\u308b\u306f\u305a\u3067\u3059. easy_install\u3068\u304bpip\u306b\u3064\u3044\u3066\u306f\u30b0\u30b0\u30c3\u3066\u304f\u3060\u3055\u3044. \u7528\u610f\u3057\u305f\u7269 sample.jpg\u3067\u3059. img.py # -*- encoding:utf-8 -*- # \u3053\u3046\u3067\u306f\u306a\u304f # import PIL import Image def img(filename='sample.jpg'): # sample.jpg\u3092\u958b\u304f im = Image\u2026"}