{"height":"190","blog_url":"https://kagasu.hatenablog.com/","provider_name":"Hatena Blog","title":"Python\u3067\u753b\u50cf\u3092\u30c8\u30ea\u30df\u30f3\u30b0\u3059\u308b\u65b9\u6cd5","version":"1.0","published":"2018-10-17 18:16:20","blog_title":"\u5099\u5fd8\u9332","categories":["Python"],"author_name":"kagasu","url":"https://kagasu.hatenablog.com/entry/2018/10/17/181620","description":"\u2160. \u306f\u3058\u3081\u306b \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u300cPython\u3067\u753b\u50cf\u3092\u30c8\u30ea\u30df\u30f3\u30b0\u3059\u308b\u65b9\u6cd5\u300d\u3067\u3059\u3002 \u2161. \u3084\u308a\u65b9 1. Pillow \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b pip install Pillow 2. \u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f from PIL import Image img = Image.open('lena.png') # \u753b\u50cf\u30b5\u30a4\u30ba\u3092\u53d6\u5f97\u3059\u308b # width, height = img.size imgCrop = img.crop((180, 160, 400, 400)) imgCrop.save('out.png') \u5b9f\u884c\u7d50\u679c lena.png out.png \u53c2\u8003 https://github.co\u2026","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kagasu/20181017/20181017181452.png","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2018%2F10%2F17%2F181620\" title=\"Python\u3067\u753b\u50cf\u3092\u30c8\u30ea\u30df\u30f3\u30b0\u3059\u308b\u65b9\u6cd5 - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/kagasu/"}