<?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>ubuntu,debian,redhat -linuxany.com &#187; watermark</title>
	<atom:link href="http://www.linuxany.com/archives/tag/watermark/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP给图片添加水印</title>
		<link>http://www.linuxany.com/archives/745.html</link>
		<comments>http://www.linuxany.com/archives/745.html#comments</comments>
		<pubDate>Tue, 03 Feb 2009 09:14:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[watermark]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=745</guid>
		<description><![CDATA[&#60;?php //调用方法 $SourceFile = '/home/user/www/images/image1.jpg'; $DestinationFile = '/home/user/www/images/image1-watermark.jpg'; $WaterMarkText = 'Copyright linuxlaptop.cn'; watermarkImage&#160;($SourceFile, $WaterMarkText, $DestinationFile); ?&#62; &#60;?php function&#160;watermarkImage ($SourceFile, $WaterMarkText, $DestinationFile) {&#160; &#160;&#160; list($width, $height) = getimagesize($SourceFile); &#160;&#160; $image_p = imagecreatetruecolor($width, $height); &#160;&#160; $image = imagecreatefromjpeg($SourceFile); &#160;&#160; imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width, $height); &#160;&#160; $black = imagecolorallocate($image_p, 0, 0, 0); &#160;&#160; [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/745.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php给图片加水印</title>
		<link>http://www.linuxany.com/archives/483.html</link>
		<comments>http://www.linuxany.com/archives/483.html#comments</comments>
		<pubDate>Sun, 05 Oct 2008 15:18:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[watermark]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=483</guid>
		<description><![CDATA[//示例 $image = new Gimage(); $image->limit = 600;//长宽限制 $image->wm_text=”www.linuxlaptop.cn”;//水印文字 $image->wm_fontfile=”font/xsuni.ttf”;//字体文件 $image->wm_color=”#ff0000&#8243;; $image->save_file = “ltcn.jpg”;//保存到xx文件 $image->create(“linuxlaptop.jpg”);//从xx文件创建 源代码如下： /* +-------------------------------------------------------------------------- &#124; 生成缩略图&#38;加水印的图片类 +-------------------------------------------------------------------------- */&#160; Class&#160;Gimage{&#160; &#160; var&#160;$input_type = &#34;&#34;; //输入图片的格式 var&#160;$output_type = &#34;jpg&#34;; //输出图片的格式 var&#160;$limit = 0; //图片大小限制 var&#160;$filename = &#34;&#34;; //输入图片的文件名(也可以直接是图片数据) var&#160;$jpeg_quality = 90; //jpeg图片质量 var&#160;$save_file = ''; //输出文件名 var&#160;$wm_text = &#34;&#34;; //水印文字( 不支持中文:'( ) var&#160;$wm_size [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/483.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

