<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rna</author_name>
  <author_url>https://blog.hatena.ne.jp/rna/</author_url>
  <blog_title>rna fragments</blog_title>
  <blog_url>https://rna.hatenadiary.jp/</blog_url>
  <categories>
    <anon>web</anon>
    <anon>pc</anon>
  </categories>
  <description>IE6(Windows)はアルファチャンネル付きの透明 PNG が透明にならない。差し当たって背景色との合成だけできればいいので、透明にせずに背景色を合成した PNG を作ればいいのだが、背景色を変更した時 GIMP とかで手で作り直すのは面倒。netpbm を使えば簡単なスクリプトで合成できる。 pngtopnm -mix -background=#cceeff foo.png | pnmtopng &gt; foo-mix.pngこれで、foo.png に背景色 #cceeff を合成した foo-mix.png ができる。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frna.hatenadiary.jp%2Fentry%2F20050519%2Fp2&quot; title=&quot; netpbm で透明 PNG に背景色を合成 - rna fragments&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2005-05-19 00:00:01</published>
  <title> netpbm で透明 PNG に背景色を合成</title>
  <type>rich</type>
  <url>https://rna.hatenadiary.jp/entry/20050519/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
