<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Watermark all images in a folder</title>
	<atom:link href="http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/</link>
	<description>All about integrating PHP with JavaScript and Flash</description>
	<lastBuildDate>Tue, 31 Jan 2012 02:53:55 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: srinivas</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-4240</link>
		<dc:creator>srinivas</dc:creator>
		<pubDate>Mon, 11 Oct 2010 12:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-4240</guid>
		<description>Thanks,

Its great, Working superb, thanks for gave script

Thanks

srinivas</description>
		<content:encoded><![CDATA[<p>Thanks,</p>
<p>Its great, Working superb, thanks for gave script</p>
<p>Thanks</p>
<p>srinivas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin Boiangiu</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3902</link>
		<dc:creator>Constantin Boiangiu</dc:creator>
		<pubDate>Fri, 30 Apr 2010 14:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3902</guid>
		<description>Can you give a live example? I can&#039;t understand exactly what you&#039;re trying to do.</description>
		<content:encoded><![CDATA[<p>Can you give a live example? I can&#8217;t understand exactly what you&#8217;re trying to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin Boiangiu</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3901</link>
		<dc:creator>Constantin Boiangiu</dc:creator>
		<pubDate>Fri, 30 Apr 2010 14:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3901</guid>
		<description>Rotating? I don&#039;t really understand what you mean. This script doesn&#039;t rotate anything from what I remember and if you give it a landscape image for example and ask it to resize that in a portrait manner ( with cropping and stuff like that ), that&#039;s what it will do. Please give more info on this.</description>
		<content:encoded><![CDATA[<p>Rotating? I don&#8217;t really understand what you mean. This script doesn&#8217;t rotate anything from what I remember and if you give it a landscape image for example and ask it to resize that in a portrait manner ( with cropping and stuff like that ), that&#8217;s what it will do. Please give more info on this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Huckleberry</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3895</link>
		<dc:creator>Huckleberry</dc:creator>
		<pubDate>Thu, 29 Apr 2010 16:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3895</guid>
		<description>Okay, I&#039;ve adjusted it into 2 scripts, 1 for vertical, one for horizontal.
Both are working well, except the verticals come out horizontal, but the watermark placement &amp; size is correct.
So I&#039;m thinking I can add some php scripting to rotate the vertical images 90 Degrees CCW after watermarking.
However, I can&#039;t seem to get it to work.
Any suggestions?
Thanks again for the great script.
Huck</description>
		<content:encoded><![CDATA[<p>Okay, I&#8217;ve adjusted it into 2 scripts, 1 for vertical, one for horizontal.<br />
Both are working well, except the verticals come out horizontal, but the watermark placement &amp; size is correct.<br />
So I&#8217;m thinking I can add some php scripting to rotate the vertical images 90 Degrees CCW after watermarking.<br />
However, I can&#8217;t seem to get it to work.<br />
Any suggestions?<br />
Thanks again for the great script.<br />
Huck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3894</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Thu, 29 Apr 2010 01:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3894</guid>
		<description>Great Script!
It&#039;s working great and is exactly what I needed.
However, for some reason, the script is rotating vertical (portrait) pictures into landscape format, then applying the watermark.
Why is it doing this?
I take it that it&#039;s calculations are causing the problem. My watermark image is large enough to fit 52in. wide Landscape JPEGs @ 72dpi, so it&#039;s really big, but resizes perfectly for smaller images, which is really all I need.
But I don&#039;t need it to rotate the image for me at all.
Any clues on how to resolve this?
Thanks in advance for your help!
Kevin</description>
		<content:encoded><![CDATA[<p>Great Script!<br />
It&#8217;s working great and is exactly what I needed.<br />
However, for some reason, the script is rotating vertical (portrait) pictures into landscape format, then applying the watermark.<br />
Why is it doing this?<br />
I take it that it&#8217;s calculations are causing the problem. My watermark image is large enough to fit 52in. wide Landscape JPEGs @ 72dpi, so it&#8217;s really big, but resizes perfectly for smaller images, which is really all I need.<br />
But I don&#8217;t need it to rotate the image for me at all.<br />
Any clues on how to resolve this?<br />
Thanks in advance for your help!<br />
Kevin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Huckleberry</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3893</link>
		<dc:creator>Huckleberry</dc:creator>
		<pubDate>Wed, 28 Apr 2010 20:46:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3893</guid>
		<description>Hello,
Great Script!
However, the only problem I&#039;m having is it&#039;s rotating my vertical/portrait shots into landscape format.
I want them to stay portrait if they&#039;re portrait.
Is this possible?
Thanks
Huck</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Great Script!<br />
However, the only problem I&#8217;m having is it&#8217;s rotating my vertical/portrait shots into landscape format.<br />
I want them to stay portrait if they&#8217;re portrait.<br />
Is this possible?<br />
Thanks<br />
Huck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin Boiangiu</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3534</link>
		<dc:creator>Constantin Boiangiu</dc:creator>
		<pubDate>Tue, 22 Dec 2009 19:30:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3534</guid>
		<description>Hi Mattias,

image_jpeg() creates the watermarked image. On lines 36 and 38 in watermark.php you&#039;ll notice that function being used. imagejpeg() takes as third parameter image quality. For best quality use 100 as third parameter. More info on this function here: &lt;a href=&quot;http://www.php.net/manual/en/function.imagejpeg.php&quot; title=&quot;imagejpeg()&quot; rel=&quot;nofollow&quot;&gt;imagejpeg() official info&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Mattias,</p>
<p>image_jpeg() creates the watermarked image. On lines 36 and 38 in watermark.php you&#8217;ll notice that function being used. imagejpeg() takes as third parameter image quality. For best quality use 100 as third parameter. More info on this function here: <a href="http://www.php.net/manual/en/function.imagejpeg.php" title="imagejpeg()" rel="nofollow">imagejpeg() official info</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattias</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3532</link>
		<dc:creator>Mattias</dc:creator>
		<pubDate>Tue, 22 Dec 2009 14:33:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3532</guid>
		<description>If you save watermarked picture, i notice the quality is now lower (smaller in size) as orginal JPG was.

ABCD0004.JPG (50,7 KB), watermarked and saved is only 39 KB, so lower quality. How can i preserve the same size/quality?

thanks</description>
		<content:encoded><![CDATA[<p>If you save watermarked picture, i notice the quality is now lower (smaller in size) as orginal JPG was.</p>
<p>ABCD0004.JPG (50,7 KB), watermarked and saved is only 39 KB, so lower quality. How can i preserve the same size/quality?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Constantin Boiangiu</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3006</link>
		<dc:creator>Constantin Boiangiu</dc:creator>
		<pubDate>Mon, 04 May 2009 18:37:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3006</guid>
		<description>After 50 images or so it stops because probably the script reaches the script timeout period. Try increasing that or set set_time_limit(0) at the top of your php script.
To position the watermark on bottom right, replace this
/*
	we establish the position of the watermark over the image
*/
$startwidth 	= 	($imagewidth 	- 	$watermarkwidth)  / 2;
$startheight 	= 	($imageheight 	- 	$watermarkheight) / 2;

with this:

$startwidth 	= 	$imagewidth 	- 	$watermarkwidth ; 
$startheight 	= 	$imageheight 	- 	$watermarkheight;</description>
		<content:encoded><![CDATA[<p>After 50 images or so it stops because probably the script reaches the script timeout period. Try increasing that or set set_time_limit(0) at the top of your php script.<br />
To position the watermark on bottom right, replace this<br />
/*<br />
	we establish the position of the watermark over the image<br />
*/<br />
$startwidth 	= 	($imagewidth 	- 	$watermarkwidth)  / 2;<br />
$startheight 	= 	($imageheight 	- 	$watermarkheight) / 2;</p>
<p>with this:</p>
<p>$startwidth 	= 	$imagewidth 	- 	$watermarkwidth ;<br />
$startheight 	= 	$imageheight 	- 	$watermarkheight;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zwix</title>
		<link>http://www.php-help.ro/php-tutorials/watermark-all-images-from-a-folder/comment-page-1/#comment-3004</link>
		<dc:creator>Zwix</dc:creator>
		<pubDate>Sat, 02 May 2009 14:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.php-help.ro/php/watermark-all-images-from-a-folder/#comment-3004</guid>
		<description>Heya,

The script works perfect but after 50 or so images it will just stop. Also how would i put the watermark image in the bottom right of every image instead of the middle? :) 

Thanks</description>
		<content:encoded><![CDATA[<p>Heya,</p>
<p>The script works perfect but after 50 or so images it will just stop. Also how would i put the watermark image in the bottom right of every image instead of the middle? :) </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

