<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ウェブを作っている人のブログ WEB LP制作 &#187; Web Design</title>
	<atom:link href="http://www.mryworks.com/weblog/category/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mryworks.com/weblog</link>
	<description>Web関係の会社をしています。</description>
	<lastBuildDate>Sun, 13 Sep 2009 16:37:05 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>IE7で透過PNGの表示が汚い。なぜ？</title>
		<link>http://www.mryworks.com/weblog/2008/05/10/png-might-be-dirty-in-ie7-why/</link>
		<comments>http://www.mryworks.com/weblog/2008/05/10/png-might-be-dirty-in-ie7-why/#comments</comments>
		<pubDate>Fri, 09 May 2008 23:26:16 +0000</pubDate>
		<dc:creator>Mr.Y</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[バグ]]></category>
		<category><![CDATA[画像]]></category>

		<guid isPermaLink="false">http://www.mryworks.com/weblog/?p=55</guid>
		<description><![CDATA[IE7で透過PNGの表示が汚いことがある。なぜですか？
 「gAMAチャンク」あるいは「補助チャンクのどれか」が、変な値になっている可能性がある。
PNGの内部は「チャンク」という項目に分かれていて、画像情報だけでなく「その他情報」を持つ事ができる。 <a href="http://www.mryworks.com/weblog/2008/05/10/png-might-be-dirty-in-ie7-why/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Q: IE7で透過PNGが汚いことがあります。なぜですか？<br />
A: 「gAMAチャンク」あるいは「補助チャンクのどれか」が、変な値になっている可能性がある。</p>
<blockquote><p>PNGファイルの構造について。<br />
PNGファイルの構造<br />
├ 識別部<br />
└ 本体部<br />
├ 標準チャンク<br />
│　├ 基本チャンク<br />
│　│　└ IHDR PLTE IDAT IEND<br />
│　└ 補助チャンク<br />
│　　　├ cHRM gAMA sBIT sRGB iCCP<br />
│　　　├ bKGD hIST tRNS pHYs sPLT<br />
│　　　└ tIME tEXt zTXt iTXt<br />
└ 付加チャンク<br />
└ 公式登録チャンク<br />
├ oFFs pCAL sCAL<br />
└ gIFg gIFt gIFx fRAc</p></blockquote>
<p>PNGの内部は「チャンク」という項目に分かれていて、画像情報だけでなく「その他情報」を持つ事ができる。</p>
<p>&#8220;gAMAチャンクの問題&#8221;。gAMAチャンクとは画像のガンマ値の設定部分のこと。<br />
今回の問題は特定の画像編集プログラムが、変なガンマの値をgAMAチャンクに書き込むことによって生じる。</p>
<p>つまり、これを解決するには、gAMAチャンクを削除すればokってことだ。<br />
そのへんにツールが転がっているはずだから、ワンタッチで修復できるだろう。<br />
因みに、gAMAチャンクがない場合はγ=2.2として描画されるから削除しても大丈夫。</p>
<p>Wikiにもその記述がある。</p>
<blockquote><p><a href="http://ja.wikipedia.org/wiki/Internet_Explorer">Internet_Explorer</a><br />
また、Internet Explorerの不具合ではないが、Photoshopで作成したPNGファイルが正常に表示できないことがある。これはPhotoshopが書き出す PNGファイルに問題（gAMAチャンク情報への記述）があるためであるが、Firefoxでは正常に表示されることからInternet Explorerの不具合と勘違いすることがある。正常に表示させるためにはPNG画像内のgAMAチャンクを削除するとよい。</p></blockquote>
<p><a href="http://www.mryworks.com/weblog/wp-content/uploads/2008/05/png-gama-chanc.gif"><img class="alignnone size-medium wp-image-56" title="pngのgamaチャンクについて" src="http://www.mryworks.com/weblog/wp-content/uploads/2008/05/png-gama-chanc-300x164.gif" alt="" width="300" height="164" /></a><br />
(図) PNGをバイナリエディタで開いた。<br />
青い部分がgAMAチャンク部&#8221;0000AFC8&#8243;。これは正常値のγ=2.2。macで制作した場合は1.8になる。</p>
<p>自分の場合、pngはできるだけ使わないようにしている。<br />
上のようなややこしい原因を調べなきゃならないし、それにpng重いし。<br />
いつか画像処理も詳しく勉強してみたいね。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mryworks.com/weblog/2008/05/10/png-might-be-dirty-in-ie7-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

