{"id":182,"date":"2021-04-10T12:08:36","date_gmt":"2021-04-10T03:08:36","guid":{"rendered":"http:\/\/www.agile-software.site\/?p=182"},"modified":"2021-04-17T19:00:52","modified_gmt":"2021-04-17T10:00:52","slug":"python-%e7%94%bb%e5%83%8f%e5%87%a6%e7%90%86","status":"publish","type":"post","link":"https:\/\/agile-software.net\/?p=182","title":{"rendered":"Python \u753b\u50cf\u51e6\u7406"},"content":{"rendered":"\n<p>Pillow\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>#import PIL\u3068\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u66f8\u304f\u306e\u306fImage\u4e0b\u306e\u95a2\u6570\u3092\u6307\u5b9a\u3059\u308b\u306e\u304c\u7c21\u5358\u306b\u306a\u308b\u305f\u3081\n#PIL.Image.open\u3000\u2192\u3000Image.open\nfrom PIL import Image<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>image.open(&quot;photo\\\\001.jpg&quot;)<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>img.show()<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u753b\u50cf\u306e\u30ea\u30b5\u30a4\u30ba<\/h2>\n\n\n\n<p>thumbnail\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046<\/p>\n\n\n\n<p>\u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u5e45\u307e\u305f\u306f\u9ad8\u3055\u306e\u3044\u305a\u308c\u304b\u5927\u304d\u3044\u65b9\u3092\u4e0a\u9650\u306b\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u753b\u50cf\u306e\u30b5\u30a4\u30ba\u306e\u78ba\u8a8d<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>img.size<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u753b\u50cf\u306e\u4fdd\u5b58<\/h2>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\u5143\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3059\u308c\u3070\u4e0a\u66f8\u304d\u4fdd\u5b58\u3001\u5225\u306e\u540d\u524d\u3060\u3068\u5225\u540d\u3067\u4fdd\u5b58\u3055\u308c\u308b\u3002\nimg.save(\u5f15\u6570)<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Pillow\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046 \u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f \u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b \u753b\u50cf\u306e\u30ea\u30b5\u30a4\u30ba thumbnail\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046 \u5f15\u6570\u306b\u6307\u5b9a\u3057\u305f\u5e45\u307e\u305f\u306f\u9ad8\u3055\u306e\u3044\u305a\u308c\u304b\u5927\u304d\u3044\u65b9\u3092\u4e0a\u9650\u306b\u30ea\u30b5\u30a4\u30ba\u3059\u308b\u3002 \u753b\u50cf\u306e\u30b5\u30a4\u30ba\u306e\u78ba\u8a8d \u753b\u50cf\u306e\u4fdd\u5b58<\/p>\n","protected":false},"author":1,"featured_media":326,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-182","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182"}],"version-history":[{"count":2,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions"}],"predecessor-version":[{"id":321,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/182\/revisions\/321"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/media\/326"}],"wp:attachment":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}