<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>exe_3Z1K</author_name>
  <author_url>https://blog.hatena.ne.jp/exe_3Z1K/</author_url>
  <blog_title>みずー工房</blog_title>
  <blog_url>https://3z1k.hatenablog.com/</blog_url>
  <categories>
    <anon>ショート</anon>
    <anon>雑記</anon>
  </categories>
  <description>PythonモジュールのPillow(PIL)で、APNG(アニメーションPNG)を作ってみましょう。 おおよその指定の仕方は、アニメGIFを作る方法と一緒です。 アニメGIFと対して違いがないのに、なんでネット上にあまり記事がないんだろ... APNGには、Pillowの7.1から完全に対応したようです(最新版は執筆現在で8.1)。 アニメGIFと同じように設定し、拡張子を”png”にするだけ で出力が可能です。 Python imgs = [] # Pillow形式で保存された画像の配列 imgs[0].save(&quot;result.png&quot;, # 保存名の拡張子をpngにする save_al…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3z1k.hatenablog.com%2Fentry%2F2021%2F01%2F22%2F210000&quot; title=&quot;【Python】PillowでAPNGを作る - みずー工房&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/e/exe_3Z1K/20210122/20210122205903.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-22 21:01:53</published>
  <title>【Python】PillowでAPNGを作る</title>
  <type>rich</type>
  <url>https://3z1k.hatenablog.com/entry/2021/01/22/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
