{"description":"\u672c\u65e5\u306e\u8ab2\u984c\u3068\u76ee\u6a19 resize\u3092\u4f7f\u3063\u3066\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b \u30b5\u30a4\u30ba\u306e\u6307\u5b9a\u65b9\u6cd5\u3092\u8003\u3048\u308b \u306f\u3058\u3081\u306b \u6570\u5b57\u8a8d\u8b58\u3067\u3001\u753b\u50cf\u3092\uff18\u00d7\uff18\u306e\u30b5\u30a4\u30ba\u306b\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u305d\u306e\u65b9\u6cd5\u3092\u4f7f\u3048\u3070\u5199\u771f\u3092\u30af\u30ed\u30b9\u30b9\u30c6\u30c3\u30c1\u7528\u306e\u30c7\u30fc\u30bf\u306b\u51fa\u6765\u308b\u3068\u8003\u3048\u307e\u3057\u305f\u3002 \u753b\u50cf\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0 from PIL import Image import numpy as np import sys img = Image.open('test.jpg') # \u767d\u9ed2\u306b\u3059\u308b\u306b\u306f .convert('L') width, height = img.size print(width, height) while True: ans = i\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstart-python.hateblo.jp%2Fentry%2F2019%2F11%2F02%2F090018\" title=\"\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b (python \u30af\u30ed\u30b9\u30b9\u30c6\u30c3\u30c1\u30c7\u30fc\u30bf\u3092\u4f5c\u308b \u7b2c\uff11\u56de) - \u3075\u305f\u308a\u66ae\u3089\u3057\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://start-python.hateblo.jp/entry/2019/11/02/090018","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/S/Start_python/20191104/20191104150349.jpg","provider_url":"https://hatena.blog","blog_url":"https://start-python.hateblo.jp/","provider_name":"Hatena Blog","version":"1.0","height":"190","author_name":"Start_python","categories":[],"blog_title":"\u3075\u305f\u308a\u66ae\u3089\u3057","title":"\u753b\u50cf\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b (python \u30af\u30ed\u30b9\u30b9\u30c6\u30c3\u30c1\u30c7\u30fc\u30bf\u3092\u4f5c\u308b \u7b2c\uff11\u56de)","width":"100%","published":"2019-11-02 09:00:18","type":"rich","author_url":"https://blog.hatena.ne.jp/Start_python/"}