<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>http://jca.jp/wiki/index.php?action=history&amp;feed=atom&amp;title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B</id>
	<title>画像処理ライブラリPillow-画像処理実行例 - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="http://jca.jp/wiki/index.php?action=history&amp;feed=atom&amp;title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B"/>
	<link rel="alternate" type="text/html" href="http://jca.jp/wiki/index.php?title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B&amp;action=history"/>
	<updated>2026-05-09T20:06:36Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>http://jca.jp/wiki/index.php?title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B&amp;diff=3168&amp;oldid=prev</id>
		<title>2022年10月22日 (土) 03:23にTarattaによる</title>
		<link rel="alternate" type="text/html" href="http://jca.jp/wiki/index.php?title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B&amp;diff=3168&amp;oldid=prev"/>
		<updated>2022-10-22T03:23:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2022年10月22日 (土) 03:23時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l45&quot; &gt;45行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;45行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;この他にも色々試して、追加してください。&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;この他にも色々試して、追加してください。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== 関連項目 ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[画像処理ライブラリPillow]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:学習ガイド]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Taratta</name></author>
		
	</entry>
	<entry>
		<id>http://jca.jp/wiki/index.php?title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B&amp;diff=3166&amp;oldid=prev</id>
		<title>Taratta: Taratta がページ「画像処理ライブラリPillow実行例」を「画像処理ライブラリPillow-画像処理実行例」に、リダイレクトを残さずに移動しました</title>
		<link rel="alternate" type="text/html" href="http://jca.jp/wiki/index.php?title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B&amp;diff=3166&amp;oldid=prev"/>
		<updated>2022-10-22T03:13:12Z</updated>

		<summary type="html">&lt;p&gt;Taratta がページ「&lt;a href=&quot;/wiki/index.php?title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow%E5%AE%9F%E8%A1%8C%E4%BE%8B&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;画像処理ライブラリPillow実行例 (存在しないページ)&quot;&gt;画像処理ライブラリPillow実行例&lt;/a&gt;」を「&lt;a href=&quot;/wiki/index.php/%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B&quot; title=&quot;画像処理ライブラリPillow-画像処理実行例&quot;&gt;画像処理ライブラリPillow-画像処理実行例&lt;/a&gt;」に、リダイレクトを残さずに移動しました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2022年10月22日 (土) 03:13時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Taratta</name></author>
		
	</entry>
	<entry>
		<id>http://jca.jp/wiki/index.php?title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B&amp;diff=3165&amp;oldid=prev</id>
		<title>Taratta: ページの作成:「実行例を示します。  &lt;pre&gt; # インストール済みの確認 pip list Pillow  # インストールされていない場合は、 pip install Pillow  # 必要な…」</title>
		<link rel="alternate" type="text/html" href="http://jca.jp/wiki/index.php?title=%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E3%83%A9%E3%82%A4%E3%83%96%E3%83%A9%E3%83%AAPillow-%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86%E5%AE%9F%E8%A1%8C%E4%BE%8B&amp;diff=3165&amp;oldid=prev"/>
		<updated>2022-10-22T02:50:03Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「実行例を示します。  &amp;lt;pre&amp;gt; # インストール済みの確認 pip list Pillow  # インストールされていない場合は、 pip install Pillow  # 必要な…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;実行例を示します。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# インストール済みの確認&lt;br /&gt;
pip list Pillow&lt;br /&gt;
&lt;br /&gt;
# インストールされていない場合は、&lt;br /&gt;
pip install Pillow&lt;br /&gt;
&lt;br /&gt;
# 必要なモジュール、クラス、関数の読み込み&lt;br /&gt;
from PIL import Image&lt;br /&gt;
import matplotlib.pyplot as plt&lt;br /&gt;
&lt;br /&gt;
# 画像ファイルを読み込み。(ファイル名を例えば &amp;quot;cat.png&amp;quot; とする)&lt;br /&gt;
img = Image.open('cat.png')&lt;br /&gt;
&lt;br /&gt;
# フォーマット、サイズ（幅、高さ）、モードなどのメタ情報を取得。&lt;br /&gt;
print(img.format, img.size, img.mode)&lt;br /&gt;
&lt;br /&gt;
# OSデフォルトのソフトで画像を表示。&lt;br /&gt;
img.show()&lt;br /&gt;
# 失敗することがある。「ファイルが移動されたか、名前が変更されたようです。」&lt;br /&gt;
# などと表示される。その場合は次に示すように Jupyter 上で表示する。&lt;br /&gt;
&lt;br /&gt;
# Jupyter上で画像を表示&lt;br /&gt;
plt.imshow(img)&lt;br /&gt;
&lt;br /&gt;
# 横幅を指定して画像をリサイズする。(幅を例えば 160 とする)&lt;br /&gt;
width = 160&lt;br /&gt;
height = width * img.height // img.width&lt;br /&gt;
img_resized = img.resize((width, height))&lt;br /&gt;
img_resized.save('cat-s.png')&lt;br /&gt;
&lt;br /&gt;
# 画布を定義し、作成する。&lt;br /&gt;
canvas_width = 1000&lt;br /&gt;
canvas_height = 750&lt;br /&gt;
canvas = Image.new('RGB', (canvas_width, canvas_height), (255, 255, 255))&lt;br /&gt;
&lt;br /&gt;
# リサイズした画像を貼り付ける。&lt;br /&gt;
canvas.paste(img_resized, (420, 590))&lt;br /&gt;
# または変数を使って、&lt;br /&gt;
canvas.paste(img_resized, ((canvas_width - width) // 2, canvas_height - height))&lt;br /&gt;
plt.imshow(canvas)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
この他にも色々試して、追加してください。&lt;/div&gt;</summary>
		<author><name>Taratta</name></author>
		
	</entry>
</feed>