<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Modified_script_for_Raspberry_Pi</id>
		<title>Modified script for Raspberry Pi - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=Modified_script_for_Raspberry_Pi"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Modified_script_for_Raspberry_Pi&amp;action=history"/>
		<updated>2026-05-06T17:32:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=Modified_script_for_Raspberry_Pi&amp;diff=2527&amp;oldid=prev</id>
		<title>George2: Created page with &quot;&lt;source lang=&quot;bash&quot;&gt; #!/bin/bash DEBUG=0 WIDTH=6 COUNTER=1    echo &quot;&lt;HTML&gt;&quot; &gt; index.html echo &quot;&lt;HEAD&gt;&quot; &gt;&gt; index.html echo &quot;&lt;/HEAD&gt;&quot; &gt;&gt; index.html echo &quot;&lt;BODY&gt;&quot; &gt;&gt; index.html e...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=Modified_script_for_Raspberry_Pi&amp;diff=2527&amp;oldid=prev"/>
				<updated>2015-09-29T17:22:43Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt; #!/bin/bash DEBUG=0 WIDTH=6 COUNTER=1    echo &amp;quot;&amp;lt;HTML&amp;gt;&amp;quot; &amp;gt; index.html echo &amp;quot;&amp;lt;HEAD&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html echo &amp;quot;&amp;lt;/HEAD&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html echo &amp;quot;&amp;lt;BODY&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html e...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
DEBUG=0&lt;br /&gt;
WIDTH=6&lt;br /&gt;
COUNTER=1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;lt;HTML&amp;gt;&amp;quot; &amp;gt; index.html&lt;br /&gt;
echo &amp;quot;&amp;lt;HEAD&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html&lt;br /&gt;
echo &amp;quot;&amp;lt;/HEAD&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html&lt;br /&gt;
echo &amp;quot;&amp;lt;BODY&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html&lt;br /&gt;
echo &amp;quot;&amp;lt;TABLE&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
rm -f *jpg&lt;br /&gt;
#mogrify -resize 200x200 -background white -gravity center -extent 200x200 -format jpg -quality 75 -path . full/*.jpg&lt;br /&gt;
mogrify -resize 200x200 -background white -gravity center -format jpg -quality 75 -path . full/*.jpg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for FILENAME in `ls *.jpg`&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
do&lt;br /&gt;
echo $FILENAME&lt;br /&gt;
YEAR=`echo $FILENAME | cut -c 5-8`&lt;br /&gt;
if [ $DEBUG -eq 1 ]&lt;br /&gt;
then&lt;br /&gt;
echo &amp;quot;The year is $YEAR&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
MONTH=`echo $FILENAME | cut -c 9-10`&lt;br /&gt;
if [ $DEBUG -eq 1 ]&lt;br /&gt;
then&lt;br /&gt;
echo &amp;quot;The month is $MONTH&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
DAY=`echo $FILENAME | cut -c 11-12`&lt;br /&gt;
if [ $DEBUG -eq 1 ]&lt;br /&gt;
then&lt;br /&gt;
echo &amp;quot;The day is $DAY&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
HOUR=`echo $FILENAME | cut -c 13-14`&lt;br /&gt;
if [ $DEBUG -eq 1 ]&lt;br /&gt;
then&lt;br /&gt;
echo &amp;quot;The hour is $HOUR&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
MINUTE=`echo $FILENAME | cut -c 15-16`&lt;br /&gt;
if [ $DEBUG -eq 1 ]&lt;br /&gt;
then&lt;br /&gt;
echo &amp;quot;The minute is $MINUTE&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
SECOND=`echo $FILENAME | cut -c 17-18`&lt;br /&gt;
if [ $DEBUG -eq 1 ]&lt;br /&gt;
then&lt;br /&gt;
echo &amp;quot;The second is $SECOND&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
convert $FILENAME -background Khaki label:&amp;quot;${YEAR}/${MONTH}/${DAY} ${HOUR}:${MINUTE}:${SECOND}&amp;quot; -gravity Center -append label.jpg&lt;br /&gt;
mv label.jpg $FILENAME &lt;br /&gt;
#&lt;br /&gt;
# That ends the creation of thumbnails.&lt;br /&gt;
# Not to populate the tuumbnail page&lt;br /&gt;
if [ $COUNTER -eq 1 ]&lt;br /&gt;
then&lt;br /&gt;
echo &amp;quot;&amp;lt;TR&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
echo &amp;quot;&amp;lt;TD&amp;gt; &amp;lt;a href=&amp;quot;full/${FILENAME}&amp;quot;&amp;gt;&amp;lt;img src=&amp;quot;$FILENAME&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;      &amp;lt;/TD&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if [ $COUNTER -eq $WIDTH ]&lt;br /&gt;
then COUNTER=0&lt;br /&gt;
echo &amp;quot;&amp;lt;/TR&amp;gt;&amp;quot; &amp;gt;&amp;gt; index.html&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
COUNTER=`expr $COUNTER + 1`&lt;br /&gt;
&lt;br /&gt;
done&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>