{"blog_url":"https://y0m0r.hateblo.jp/","provider_url":"https://hatena.blog","version":"1.0","published":"2013-07-18 20:27:49","type":"rich","url":"https://y0m0r.hateblo.jp/entry/20130718/1374146869","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","author_name":"yuheiomori0718","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20130718%2F1374146869\" title=\"python\u3067\u8907\u6570\u753b\u50cf\u3092\u4e00\u62ec\u3067\u7e2e\u5c0f\u3059\u308b - \u30e1\u30e2\u7f6e\u304d\u5834\" 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\u3067\u8907\u6570\u753b\u50cf\u3092\u4e00\u62ec\u3067\u7e2e\u5c0f\u3059\u308b","description":"resizeit\u3068\u3044\u3046\u306e\u3092\u4f7f\u3063\u3066\u307f\u305f\u3051\u3069\u3001\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001python\u3067\u3084\u3063\u3064\u3051\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u305f # coding=utf-8 from PIL import Image import glob import os # \u7e2e\u5c0f\u524d\u306e\u753b\u50cf\u304c\u3042\u308bdir FROM_DIR = \"/path/to/from_dir\" # \u7e2e\u5c0f\u5f8c\u306e\u753b\u50cf\u3092\u7f6e\u304fdir TO_DIR = \"/path/to/to_dir\" # \u7e2e\u5c0f\u7387 ratio = 0.3 for infile in glob.glob(os.path.join(FROM_DIR, \"*.png\")): im = Image.open(infile) im\u2026","blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","categories":["python"],"image_url":null,"width":"100%","height":"190","provider_name":"Hatena Blog"}