<?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: Batch Watermark Images in Linux</title>
	<atom:link href="http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/</link>
	<description>Linux Tweaks, HowTo&#039;s and Reviews</description>
	<lastBuildDate>Wed, 08 Feb 2012 16:49:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: How to make Batch watermark to images in Linux</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-7332</link>
		<dc:creator>How to make Batch watermark to images in Linux</dc:creator>
		<pubDate>Wed, 02 Nov 2011 15:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-7332</guid>
		<description>[...] exit 0  Note : This is an script by Linerd (http://tuxtweaks.com) you can view the original script here   3. Now in line 13 of the above script enter the path of your watermark image file such as your [...]</description>
		<content:encoded><![CDATA[<p>[...] exit 0  Note : This is an script by Linerd (<a href="http://tuxtweaks.com" rel="nofollow">http://tuxtweaks.com</a>) you can view the original script here   3. Now in line 13 of the above script enter the path of your watermark image file such as your [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linerd</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-1451</link>
		<dc:creator>Linerd</dc:creator>
		<pubDate>Fri, 20 Nov 2009 20:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-1451</guid>
		<description>Surfrock66 - did you perhaps have several terminals open to different directories and delete the working directory of one of the other terminals? You might get this message if you try to run the script from a directory that no longer exists. A &lt;a href=&quot;http://www.google.com/search?q=shell-init%3A+error+retrieving+current+directory%3A+getcwd%3A+cannot+access+parent+directories%3A+No+such+file+or+directory&quot; rel=&quot;nofollow&quot;&gt;google search on the error&lt;/a&gt; suggests some possible causes.

I don&#039;t think the error has anything to do with the program itself.</description>
		<content:encoded><![CDATA[<p>Surfrock66 - did you perhaps have several terminals open to different directories and delete the working directory of one of the other terminals? You might get this message if you try to run the script from a directory that no longer exists. A <a href="http://www.google.com/search?q=shell-init%3A+error+retrieving+current+directory%3A+getcwd%3A+cannot+access+parent+directories%3A+No+such+file+or+directory" rel="nofollow">google search on the error</a> suggests some possible causes.</p>
<p>I don't think the error has anything to do with the program itself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Surfrock66</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-1449</link>
		<dc:creator>Surfrock66</dc:creator>
		<pubDate>Fri, 20 Nov 2009 19:02:55 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-1449</guid>
		<description>I&#039;m having some issues; i&#039;m completely new to Bash scripts.  I&#039;m getting an error:

shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

Any thoughts?</description>
		<content:encoded><![CDATA[<p>I'm having some issues; i'm completely new to Bash scripts.  I'm getting an error:</p>
<p>shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory</p>
<p>Any thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prasad</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-433</link>
		<dc:creator>prasad</dc:creator>
		<pubDate>Mon, 31 Aug 2009 12:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-433</guid>
		<description>Hi,

I found a Webapplication that does batch watermarking (upto 20 images) and it has lot of options to customize the watermark.

http://watermark-images.com

Prasad.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I found a Webapplication that does batch watermarking (upto 20 images) and it has lot of options to customize the watermark.</p>
<p><a href="http://watermark-images.com" rel="nofollow">http://watermark-images.com</a></p>
<p>Prasad.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim Briggs</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-386</link>
		<dc:creator>Kim Briggs</dc:creator>
		<pubDate>Tue, 25 Aug 2009 02:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-386</guid>
		<description>&quot;@ Kim – Interesting. I haven’t gotten into perl yet, so I don’t quite follow everything that’s going on. I’m guessing that chomp is a perl specific command?&quot;

chomp gets rid of the &quot;new line&quot; character that is included when you hit the &quot;Enter/Return&quot; button after submitting data.  In this case, the year.  The &quot;convert&quot; command is a ImageMagick command  (man imagemagick for details).</description>
		<content:encoded><![CDATA[<p>"@ Kim – Interesting. I haven’t gotten into perl yet, so I don’t quite follow everything that’s going on. I’m guessing that chomp is a perl specific command?"</p>
<p>chomp gets rid of the "new line" character that is included when you hit the "Enter/Return" button after submitting data.  In this case, the year.  The "convert" command is a ImageMagick command  (man imagemagick for details).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Destillat KW34-2009 &#124; duetsch.info - GNU/Linux, Open Source, Softwareentwicklung, Selbstmanagement, Vim ...</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-379</link>
		<dc:creator>Destillat KW34-2009 &#124; duetsch.info - GNU/Linux, Open Source, Softwareentwicklung, Selbstmanagement, Vim ...</dc:creator>
		<pubDate>Fri, 21 Aug 2009 07:55:54 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-379</guid>
		<description>[...] Batch Watermark Images in Linux [...]</description>
		<content:encoded><![CDATA[<p>[...] Batch Watermark Images in Linux [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose_X</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-378</link>
		<dc:creator>Jose_X</dc:creator>
		<pubDate>Wed, 19 Aug 2009 14:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-378</guid>
		<description>I would change the first script to run only after Y/y. This way if the person types &quot;stop&quot; or &quot;help&quot; or &quot;no&quot; or &quot;&quot; etc, they won&#039;t have to worry.

BTW, you can avoid being there to type &quot;y&quot; by doing: yes &#124; thescript</description>
		<content:encoded><![CDATA[<p>I would change the first script to run only after Y/y. This way if the person types "stop" or "help" or "no" or "" etc, they won't have to worry.</p>
<p>BTW, you can avoid being there to type "y" by doing: yes | thescript</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Linerd</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-376</link>
		<dc:creator>Linerd</dc:creator>
		<pubDate>Wed, 19 Aug 2009 01:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-376</guid>
		<description>@ Duane - Nice script. It looks like it could be done a little more efficiently. I like the &lt;strong&gt;&lt;code&gt;ls &#124; grep -ic jpg&lt;/code&gt;&lt;/strong&gt; part. That&#039;s a neat trick to count the files. I like your watermark image too. I&#039;ll have to try making one like that in GIMP. 

The composite command should work fine if you just overwrite the file:
&lt;code&gt;composite -gravity SouthEast $watermark &quot;$i&quot; &quot;$i&quot;&lt;/code&gt;
Then you can skip the &lt;code&gt;rm&lt;/code&gt; command to clean up.

@ Kim - Interesting. I haven&#039;t gotten into perl yet, so I don&#039;t quite follow everything that&#039;s going on. I&#039;m guessing that &lt;code&gt;chomp&lt;/code&gt; is a perl specific command?

@ both - I guess what sets my script apart is the handling of multiple image file types.  There&#039;s a lot going on in &lt;code&gt;file -i * &#124; grep image &#124; awk -F&#039;:&#039; &#039;{ print $1 }&#039; &#124; while read IMAGE&lt;/code&gt;. 
&lt;code&gt;file -i *&lt;/code&gt; - lists the files and shows file MIME type.
&lt;code&gt;grep image&lt;/code&gt; - filters the list for image files
&lt;code&gt;awk -F&#039;:&#039; &#039;{ print $1 }&#039;&lt;/code&gt; - cuts the file name from the list item (everything before the &quot;:&quot; )
&lt;code&gt;while read IMAGE&lt;/code&gt; - takes the file name output from awk and stores it in $IMAGE

I tested on a directory with .gif, .jpg, .png, .tiff files. File names with spaces work.</description>
		<content:encoded><![CDATA[<p>@ Duane - Nice script. It looks like it could be done a little more efficiently. I like the <strong><code>ls | grep -ic jpg</code></strong> part. That's a neat trick to count the files. I like your watermark image too. I'll have to try making one like that in GIMP. </p>
<p>The composite command should work fine if you just overwrite the file:<br />
<code>composite -gravity SouthEast $watermark "$i" "$i"</code><br />
Then you can skip the <code>rm</code> command to clean up.</p>
<p>@ Kim - Interesting. I haven't gotten into perl yet, so I don't quite follow everything that's going on. I'm guessing that <code>chomp</code> is a perl specific command?</p>
<p>@ both - I guess what sets my script apart is the handling of multiple image file types.  There's a lot going on in <code>file -i * | grep image | awk -F':' '{ print $1 }' | while read IMAGE</code>.<br />
<code>file -i *</code> - lists the files and shows file MIME type.<br />
<code>grep image</code> - filters the list for image files<br />
<code>awk -F':' '{ print $1 }'</code> - cuts the file name from the list item (everything before the ":" )<br />
<code>while read IMAGE</code> - takes the file name output from awk and stores it in $IMAGE</p>
<p>I tested on a directory with .gif, .jpg, .png, .tiff files. File names with spaces work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Duane Dier</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-375</link>
		<dc:creator>Duane Dier</dc:creator>
		<pubDate>Tue, 18 Aug 2009 22:41:25 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-375</guid>
		<description>Nice work!

I wrote a &lt;a href=&quot;http://duane-pwns.blogspot.com/2008/09/batch-watermarking-photos-in-bash.html&quot; rel=&quot;nofollow&quot;&gt;similar script&lt;/a&gt; that copies 

http://duane-pwns.blogspot.com/2008/09/batch-watermarking-photos-in-bash.html

Yours is more concise, but mine was written for the specific purpose of creating a directory of smaller, watermarked images within the current directory. Let me know what you think!</description>
		<content:encoded><![CDATA[<p>Nice work!</p>
<p>I wrote a <a href="http://duane-pwns.blogspot.com/2008/09/batch-watermarking-photos-in-bash.html" rel="nofollow">similar script</a> that copies </p>
<p><a href="http://duane-pwns.blogspot.com/2008/09/batch-watermarking-photos-in-bash.html" rel="nofollow">http://duane-pwns.blogspot.com/2008/09/batch-watermarking-photos-in-bash.html</a></p>
<p>Yours is more concise, but mine was written for the specific purpose of creating a directory of smaller, watermarked images within the current directory. Let me know what you think!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kim Briggs</title>
		<link>http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/comment-page-1/#comment-374</link>
		<dc:creator>Kim Briggs</dc:creator>
		<pubDate>Tue, 18 Aug 2009 22:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://tuxtweaks.com/?p=790#comment-374</guid>
		<description>Here are mine.  Resized, thumbnailed, and watermarked at the same time:

http://kimbriggs.com/computers/computer-software/perl-image-manipulation.file</description>
		<content:encoded><![CDATA[<p>Here are mine.  Resized, thumbnailed, and watermarked at the same time:</p>
<p><a href="http://kimbriggs.com/computers/computer-software/perl-image-manipulation.file" rel="nofollow">http://kimbriggs.com/computers/computer-software/perl-image-manipulation.file</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

