<?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>へっぽこ開発室 &#187; GD</title>
	<atom:link href="http://wp.foliz.net/archives/category/php/gd/feed" rel="self" type="application/rss+xml" />
	<link>http://wp.foliz.net</link>
	<description>webプログラム　php,Smarty,Zend Framework,ajax,pearネタなど～</description>
	<lastBuildDate>Sat, 21 Jan 2012 06:32:52 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>画像ファイルが壊れていないかチェック</title>
		<link>http://wp.foliz.net/archives/70</link>
		<comments>http://wp.foliz.net/archives/70#comments</comments>
		<pubDate>Wed, 05 Mar 2008 14:28:04 +0000</pubDate>
		<dc:creator>Fou</dc:creator>
				<category><![CDATA[GD]]></category>

		<guid isPermaLink="false">http://wp.foliz.net/archives/70</guid>
		<description><![CDATA[サムネイル画像作成などでファイルサイズが大きいものは失敗するときがある。 そんなときリソース化にしてみると画像が壊れていないか確認できる。 $img_contents = file_get_contents('path' [...]]]></description>
			<content:encoded><![CDATA[<p>サムネイル画像作成などでファイルサイズが大きいものは失敗するときがある。<br />
そんなときリソース化にしてみると画像が壊れていないか確認できる。</p>
<pre long="php">
$img_contents = file_get_contents('path');    //サムネイル

//リソース化できないのは取得失敗
if (!@imageCreateFromString($img_contents)){
  throw new exception("ファイルサイズが大きすぎるようです。");
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wp.foliz.net/archives/70/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ImageCopyResampledとImageCopyResized</title>
		<link>http://wp.foliz.net/archives/19</link>
		<comments>http://wp.foliz.net/archives/19#comments</comments>
		<pubDate>Mon, 03 Sep 2007 10:17:04 +0000</pubDate>
		<dc:creator>Fou</dc:creator>
				<category><![CDATA[GD]]></category>

		<guid isPermaLink="false">http://wp.foliz.net/archives/19</guid>
		<description><![CDATA[php GDライブラリ ImageCopyResampled — 再サンプリングを行いイメージの一部をコピー、伸縮する ImageCopyResized — 画像の一部をコピーしサイズを変更する 似てるけど結果にかなり差 [...]]]></description>
			<content:encoded><![CDATA[<p>php GDライブラリ</p>
<p><a href="http://www.php.net/manual/ja/function.imagecopyresampled.php" title="ImageCopyResampled">ImageCopyResampled</a> — 再サンプリングを行いイメージの一部をコピー、伸縮する<br />
<a href="http://www.php.net/manual/ja/function.imagecopyresized.php" title="ImageCopyResized">ImageCopyResized</a> — 画像の一部をコピーしサイズを変更する</p>
<p>似てるけど結果にかなり差があり。<br />
色化けした場合はこれを疑おう。</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.foliz.net/archives/19/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>image関数</title>
		<link>http://wp.foliz.net/archives/10</link>
		<comments>http://wp.foliz.net/archives/10#comments</comments>
		<pubDate>Thu, 30 Aug 2007 11:59:19 +0000</pubDate>
		<dc:creator>Fou</dc:creator>
				<category><![CDATA[GD]]></category>

		<guid isPermaLink="false">http://wp.foliz.net/archives/10</guid>
		<description><![CDATA[画質を落とさない出力 header(&#8220;Content-type: image/jpeg&#8221;); ImageJPEG($im,&#8221;,100); 100をつけるとおｋ つーかデフォルトを100 [...]]]></description>
			<content:encoded><![CDATA[<p>画質を落とさない出力<br />
header(&#8220;Content-type: image/jpeg&#8221;);<br />
ImageJPEG($im,&#8221;,100);</p>
<p>100をつけるとおｋ<br />
つーかデフォルトを100にしてよ・・・。</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.foliz.net/archives/10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ファイルの先頭8バイトだけで画像のフォーマットを調べる方法</title>
		<link>http://wp.foliz.net/archives/99</link>
		<comments>http://wp.foliz.net/archives/99#comments</comments>
		<pubDate>Wed, 29 Aug 2007 06:39:06 +0000</pubDate>
		<dc:creator>Fou</dc:creator>
				<category><![CDATA[GD]]></category>
		<category><![CDATA[画像フォーマット]]></category>

		<guid isPermaLink="false">http://wp.foliz.net/archives/3</guid>
		<description><![CDATA[ファイルの先頭8バイトだけで画像のフォーマットを調べる方法 http://labs.gmo.jp/blog/ku/2007/05/8.html こりゃー便利だ。 つーかなんでGDはサポートしてないんだろう？？ リソースか [...]]]></description>
			<content:encoded><![CDATA[<p>ファイルの先頭8バイトだけで画像のフォーマットを調べる方法</p>
<p><a target="_blank" href="http://labs.gmo.jp/blog/ku/2007/05/8.html">http://labs.gmo.jp/blog/ku/2007/05/8.html</a></p>
<p>こりゃー便利だ。<br />
つーかなんでGDはサポートしてないんだろう？？<br />
リソースから取得できてもよさそうなもんなのに。。</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.foliz.net/archives/99/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

