<?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>Digital AG Studios</title>
	<atom:link href="http://www.digitalag.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.digitalag.net</link>
	<description>Web, Graphics &#38; Multimedia Design &#38; Development</description>
	<lastBuildDate>Wed, 12 Jun 2013 15:04:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>App: The 20-20 Work Timer</title>
		<link>http://www.digitalag.net/app-the-20-20-work-timer/</link>
		<comments>http://www.digitalag.net/app-the-20-20-work-timer/#comments</comments>
		<pubDate>Mon, 18 Feb 2013 00:54:17 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[App]]></category>
		<category><![CDATA[Productivity]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1144</guid>
		<description><![CDATA[If you spend a good part of your day using the computer, the 20-20-20 rule, might help you relax your tired eyes. The rule goes something like this. Every 20 minutes you are staring at your computer screen, take a 20 second break, and stare at something 20 feet away. Since it  is nearly impossible for any [...]]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>If you spend a good part of your day using the computer, the 20-20-20 rule, might help you relax your tired eyes.</p>
<p>The rule goes something like this.</p>
<p>Every 20 minutes you are staring at your computer screen, take a 20 second break, and stare at something 20 feet away.</p>
<p>Since it  is nearly impossible for any computer users to remember that they have to take a break every 20 minutes, I&#8217;ve devised a simple program that will track how long you have been working. Every 20 minutes, it will cover your screen, forcing you to stair away for 20 seconds.</p>
<p>This application is currently a prototype, and would greatly appreciate feedback and suggestions for features and updates that could help improve the application in future releases.</p>
<p>Current Version: 0.1</p>
<p>Features:</p>
<ul>
<li>Track the time you have been working</li>
<li>Fullscreen interruptions for 20 seconds every 20 minutes</li>
<li>Pause Work time, or Skip Break options</li>
</ul>
<p><a class="button em" href="http://www.digitalag.net/wp-content/uploads/2013/02/worktimer.zip">Download Now</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/app-the-20-20-work-timer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Digital Painting: For my Valentine</title>
		<link>http://www.digitalag.net/digital-painting-for-my-valentine/</link>
		<comments>http://www.digitalag.net/digital-painting-for-my-valentine/#comments</comments>
		<pubDate>Thu, 14 Feb 2013 15:44:52 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Digital Painting]]></category>
		<category><![CDATA[Portfolio]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1139</guid>
		<description><![CDATA[Happy Valentine&#8217;s Day! This is the first painting I&#8217;ve done of you significant other, a fact she has always been suspicious about, so here it is. Love you Hun.]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>Happy Valentine&#8217;s Day!</p>
<p>This is the first painting I&#8217;ve done of you significant other, a fact she has always been suspicious about, so here it is.</p>
<p>Love you Hun.<br />
<iframe src="http://www.youtube.com/embed/qkBguCTCMZ8" height="315" width="420" allowfullscreen="" frameborder="0"></iframe></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/digital-painting-for-my-valentine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WAMP: Configure a virtual directory</title>
		<link>http://www.digitalag.net/wamp-configure-virtual-directory/</link>
		<comments>http://www.digitalag.net/wamp-configure-virtual-directory/#comments</comments>
		<pubDate>Thu, 17 Jan 2013 18:58:17 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Tools & Tips]]></category>
		<category><![CDATA[Fixes]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Virtual Hosting]]></category>
		<category><![CDATA[WAMP]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1134</guid>
		<description><![CDATA[As a web developer many want to test their developments on their local machines. But when it comes to dealing with PHP and MySQL you will need a web server (software) to test the sites you make. Normally we would have to download Apache from www.apache.org , MySQL from MySQL.net and configure these separately to [...]]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>As a web developer many want to test their developments on their local machines. But when it comes to dealing with PHP and MySQL you will need a web server (software) to test the sites you make. Normally we would have to download Apache from www.apache.org , MySQL from MySQL.net and configure these separately to work with each other on our local machine. Also if you want to administer MySQL on the browser you will have to install PHPMyAdmin which is a burden for the novice user.</p>
<p>To tackle these problems there are several packaged solutions on the net. Popular and more robust one is WAMP server. <a href="http://www.wampserver.com/" target="_blank">www.wampserver.com </a>.</p>
<p>Let see step by step on how to create a root folder for our new web site that has to be built using PHP.<span id="more-1134"></span></p>
<h2>Step 1: Easiest way!</h2>
<p>After installing WAMP on your local machine (You should see a white Speedo meter on the notification area) goes the folder where WAMP resides (If you install it on you C: partition then it is C:/wamp/). The folder structure is as follows,</p>
<p><img alt="image 1" src="http://www.webdesign.org/img_articles/16605/img1_550.jpg" width="550" height="231" /></p>
<p>Go inside the www folder and create a new folder inside it called &#8220;TestSite&#8221;. This is the rot folder of your web site. Better if you do not put spaces. Open up a simple notepad document and insert the following on it (don&#8217;t copy the formatting. Just type it),</p>
<table width="99%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>&lt;?php echo &#8220;Hello World!&#8221;; ?&gt;</td>
</tr>
</tbody>
</table>
<p>Then same it inside the newly created folder and name it index.php.</p>
<p>Go to your browser and call http://localhost/TestSite/</p>
<p>If you see something like this then you are ready to do building rest of your dynamic web site.</p>
<p><img alt="image 2" src="http://www.webdesign.org/img_articles/16605/img2.jpg" width="419" height="150" /></p>
<h2>Step2: Assigning a root folder outside &#8220;www&#8221;.</h2>
<p>Well, if we want separate our web site folders from the WAMP server folder and put somewhere else in the hard drive then procedure gets a bit tricky for the beginners.</p>
<p>First create the folder you want as the web site root folder. Let&#8217;s say D:/MyNewTest/</p>
<p>Now we have to tell the WAMP server that this folder contains a web site and it should come up when the URL is called through the browser right?</p>
<p>Ok, first click on the little Speedometer icon on the notification area. Then go to,</p>
<p>Apache &gt; Alias directories &gt; Add an alias</p>
<p><img alt="image 3" src="http://www.webdesign.org/img_articles/16605/ima3.jpg" width="390" height="295" /></p>
<p>Then you will be asked to give an alias to the site, this is what you type after http://localhost/ in the browser. Previous one was &#8220;TestSite&#8221; which is actually the folder name itself. But this is not necessary in this case. You can put anything. But don&#8217;t use spaces or dots. J</p>
<p><img alt="image 4" src="http://www.webdesign.org/img_articles/16605/img3_550.jpg" width="550" height="287" /></p>
<p>Let&#8217;s put &#8220;MySite&#8221;.</p>
<p><img alt="image 5" src="http://www.webdesign.org/img_articles/16605/img4_550.jpg" width="550" height="281" /></p>
<p>Then you will be asked what is the actual folder that MySite alias point to.</p>
<p><img alt="image 6" src="http://www.webdesign.org/img_articles/16605/img5_550.jpg" width="550" height="275" /></p>
<p>Give the following, D:/MyNewTest/</p>
<p>Note the forward slashes.</p>
<p><img alt="Configure a virtual directory using WAMP" src="http://www.webdesign.org/img_articles/16605/img6_550.jpg" width="550" height="276" /></p>
<p>Now press enter to close the DOS prompt.</p>
<p>Go to your browser and type the http://localhost/MySite/</p>
<p>You will see the root index now. Put the notepad file we created earlier to &#8220;D:/MyNewTest&#8221;and refresh the browser page to test the PHP.</p>
<p>That is it. Simple isn&#8217;t it?</p>
<p>Source: <a href="http://www.webdesign.org/web-programming/php/configure-a-virtual-directory-using-wamp.16605.html">http://www.webdesign.org/web-programming/php/configure-a-virtual-directory-using-wamp.16605.html</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/wamp-configure-virtual-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixes: Acrobat X Wont Start Fixed</title>
		<link>http://www.digitalag.net/fixes-acrobat-x-wont-start-fixed/</link>
		<comments>http://www.digitalag.net/fixes-acrobat-x-wont-start-fixed/#comments</comments>
		<pubDate>Tue, 01 Jan 2013 18:03:41 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Tools & Tips]]></category>
		<category><![CDATA[Acrobat]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Fixes]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1122</guid>
		<description><![CDATA[I&#8217;ve had this issue on numerous occasions. For some reason, one of the Acrobat updates completely breaks the program, preventing it from opening or being able to preform any of its standard tasks. The quickest fix I found was to reset the Adobe cache file. Navigate to C:\Program Files(x86)\Common Files\Adobe\Adobe PCD\cache\ Take the file cache.db and move [...]]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>I&#8217;ve had this issue on numerous occasions. For some reason, one of the Acrobat updates completely breaks the program, preventing it from opening or being able to preform any of its standard tasks. The quickest fix I found was to reset the Adobe cache file.</p>
<ol>
<li>Navigate to <strong>C:\Program Files(x86)\Common Files\Adobe\Adobe PCD\cache\</strong></li>
<li>Take the file <strong>cache.db</strong> and move it to the desktop (or delete it)</li>
<li>Now open <em>Photoshop</em> (Or other Adobe program from the same suite), you&#8217;ll notice this automatically make a new<strong> cache.db</strong> file in the <strong>cache</strong> folder.</li>
<li>Try and open <em>Acrobat</em> again and you will be prompted to Activate.</li>
<li>Select <strong>License this Software</strong>, enter your product key and sign in to your Adobe account.</li>
</ol>
<p>Fixed!<br />
If it happens again just repeat the process. It&#8217;s far quicker then re-installing all of a Creative Suite,</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/fixes-acrobat-x-wont-start-fixed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typography: The Kerning Game</title>
		<link>http://www.digitalag.net/typography-the-kerning-game/</link>
		<comments>http://www.digitalag.net/typography-the-kerning-game/#comments</comments>
		<pubDate>Wed, 19 Dec 2012 22:58:42 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Tools & Tips]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1118</guid>
		<description><![CDATA[This is a fun game for Typography nuts, try and move the letters to get the best kerning http://type.method.ac/]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>This is a fun game for Typography nuts, try and move the letters to get the best kerning</p>
<p><a href="http://type.method.ac/">http://type.method.ac/</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/typography-the-kerning-game/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Typography: Interactive Guide to Blog Typography</title>
		<link>http://www.digitalag.net/interactive-guide-to-blog-typography/</link>
		<comments>http://www.digitalag.net/interactive-guide-to-blog-typography/#comments</comments>
		<pubDate>Wed, 19 Dec 2012 22:45:17 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Tools & Tips]]></category>
		<category><![CDATA[resources]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1111</guid>
		<description><![CDATA[This site is an awesome guide that helps you make those minor adjustments to your typography, with nice descriptions and justification for why these little changes have such a huge impact on the readability of your site. http://www.kaikkonendesign.fi/typography/section/]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>This site is an awesome guide that helps you make those minor adjustments to your typography, with nice descriptions and justification for why these little changes have such a huge impact on the readability of your site.</p>
<p><a href="http://www.kaikkonendesign.fi/typography/section/">http://www.kaikkonendesign.fi/typography/section/</a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/interactive-guide-to-blog-typography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone: See the Actual Signal Strength</title>
		<link>http://www.digitalag.net/iphone-see-the-actual-signal-strength/</link>
		<comments>http://www.digitalag.net/iphone-see-the-actual-signal-strength/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 01:06:16 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1104</guid>
		<description><![CDATA[I always hated the signal bars on the top right, as they always seem inaccurate. If you want to see a more accurate decibel number of your signal strength, try the following hack (no jailbreak required). Step 1: Dial *3001#12345#* on you phone and press call. Step 2: You&#8217;ll now enter Field Test mode. You&#8217;ll [...]]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>I always hated the signal bars on the top right, as they always seem inaccurate. If you want to see a more accurate decibel number of your signal strength, try the following hack (no jailbreak required).</p>
<p><strong>Step 1:</strong> Dial *3001#12345#* on you phone and press call.</p>
<p><strong>Step 2:</strong> You&#8217;ll now enter Field Test mode. You&#8217;ll notice at the top it is already showing the signal strength in decibels. You can tap the signal strength to toggle between the numbers and the bars.</p>
<p><strong>Step 3:</strong> Too make this setting permanent, hold down the power button till the poster off screen appears, but don&#8217;t power it off.</p>
<p><strong>Step 4:</strong> Hold down the Home button till you leave the power screen and exit the Field Test app and are returned to your home screen.</p>
<p>That&#8217;s it, you can now see the exact signal strength.<br />
The lower your number, the stronger your signal—but don&#8217;t include the &#8211; sign when evaluating (so, if the signal says -60, that&#8217;s better than -90).</p>
<p><a href="http://www.digitalag.net/wp-content/uploads/2012/12/20121217-072447.jpg"><img class="alignnone size-full" alt="20121217-072447.jpg" src="http://www.digitalag.net/wp-content/uploads/2012/12/20121217-072447.jpg" /></a></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/iphone-see-the-actual-signal-strength/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XAMPP: Setting Up Local Virtual Hosting</title>
		<link>http://www.digitalag.net/xampp-setting-up-local-virtual-hosting/</link>
		<comments>http://www.digitalag.net/xampp-setting-up-local-virtual-hosting/#comments</comments>
		<pubDate>Sat, 15 Dec 2012 01:56:24 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Virtual Hosting]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1092</guid>
		<description><![CDATA[In this scenario I was tasked with setting up a local server on our company network (so not accessible out side our network) for students to access and upload their own websites, and give them access to their own MySQL database through PhpMyAdmin. The first thing is to direct your desired domain name to the [...]]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>In this scenario I was tasked with setting up a local server on our company network (so not accessible out side our network) for students to access and upload their own websites, and give them access to their own MySQL database through PhpMyAdmin.<br />
The first thing is to direct your desired domain name to the networked computer (since I don&#8217;t want to keep typing the IP address in the address bar, and it helps my students relate to a real web server). In the DNS manager of your domain host, have the domain point to your local IP address (this is usually a 192.168.1.##). Once the DNS record is saved it may take up to 48 hours before it updated, but their is still some other things to do before we see this work.<br />
You&#8217;ll want to already have your favourite Apache, MySQL, PHP package installed. I personally love XAMPP so I&#8217;ll be using that.<br />
Navigate to your XAMPP&#8217;s httpd-vhosts.conf file, it should be in this directory:</p>
<p><code>C:\xampp\apache\conf\extra\httpd-vhosts.conf</code></p>
<p>Go to the bottom of the file add the following:</p>
<p><code>NameVirtualHost *<br />
&lt;VirtualHost *&gt;<br />
DocumentRoot "C:\xampp\htdocs"<br />
ServerName localhost<br />
&lt;/VirtualHost&gt;<br />
&lt;VirtualHost *&gt;<br />
DocumentRoot "C:\xampp\htdocs\<strong>yourfolder</strong>"<br />
ServerName <strong>yourdomain.com</strong><br />
&lt;Directory "C:\xampp\htdocs\yourfolder"&gt;<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</code></p>
<p>Replace the area the says &#8220;yourdomain.com&#8221; the the domain name you need the server to accept.<br />
Replace the &#8220;yourfolder&#8221; with the folder in your htdocs folder your want the domain to point to (remove if your want to just use your htdocs folder as the site root).<br />
That will get the domain pointing to the folder and acting as a website, but we aren&#8217;t done yet; One issue we have is PhpMyAdmin does not accept requests from names outside the localhost, so we need to tell it to allow. Find the http-xampp.conf file, it should be located here:</p>
<p><code>C:\xampp\apache\conf\extra\httpd-xampp.conf</code></p>
<p>Go to the bottom of the file and you should find an area labeled as &#8220;New XAMPP security concept&#8221;, change the &#8220;Allow from&#8221; part to just allow &#8220;all&#8221;. it should look like this:</p>
<p><code>#<br />
# New XAMPP security concept<br />
#<br />
&lt;LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))"&gt;<br />
Order deny,allow<br />
Deny from all<br />
Allow from <strong>all</strong><br />
ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var<br />
&lt;/LocationMatch&gt;</code></p>
<p>Finally, that is all we need to do in XAMPP, but for security purposes Window does not allow outside access to your computer unless strictly approved. We just need to add our domain to the safe list; navigate to your windows hosts file found here:</p>
<p><code>C:\Windows\System32\drivers\etc\hosts</code></p>
<p>In this file, near the bottom, you&#8217;ll find where Windows is allowing even your localhost to access your computer (&#8220;# 127.0.0.1 localhost&#8221;). At the bottom of any other localhost name resolutions, add your domain to be resolved to the same local IP (127.0.0.1 which is just a reference to your computer), so your file should look like this:</p>
<p><code># localhost name resolution is handled within DNS itself.<br />
# 127.0.0.1 localhost<br />
# ::1 localhost<br />
<strong># 127.0.0.1 yourdomain.com</strong></code></p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/xampp-setting-up-local-virtual-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP: Creating Image Thumbnails</title>
		<link>http://www.digitalag.net/php-creating-image-thumbnails/</link>
		<comments>http://www.digitalag.net/php-creating-image-thumbnails/#comments</comments>
		<pubDate>Mon, 10 Dec 2012 23:53:32 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1079</guid>
		<description><![CDATA[In this example, I had to take an existing large image that was uploaded by the user and create a smaller version of it for the thumbnail. To create a thumbnail image in PHP, you need make sure the your server has the GD Library enabled, which if you are on a hosted server should be [...]]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>In this example, I had to take an existing large image that was uploaded by the user and create a smaller version of it for the thumbnail.</p>
<p><span id="more-1079"></span></p>
<p>To create a thumbnail image in PHP, you need make sure the your server has the <a href="http://php.net/manual/en/intro.image.php">GD Library</a> enabled, which if you are on a hosted server should be a given. You can check this by running this code in a PHP file:</p>
<pre>&lt;?php
var_dump(gd_info());
?&gt;</pre>
<p>Then you can enter the code in as follows:</p>
<pre>$src = imagecreatefromjpeg("upoloads/your_large_image.jpg");
$new = imagecreatetruecolor(180,112);
imagecopyresampled($new, $src,0,0,0,0,180,112,imagesx($src),imagesy($src));
imagejpeg($new, "thumbnails/name_of_new_thumbnail_image.jpg");</pre>
<p>The first part &#8220;<a href="http://php.net/manual/en/function.imagecreatefromjpeg.php">imagecreatefromjpg</a>&#8221; returns an image identifier representing the image obtained from the given file (basically just storing the image in the variable &#8220;$src&#8221; for us so we can use it in conjunction with the next few image functions), so here we pass the location of our uploaded or large image. This function also has a PNG, GIF and other image format versions.</p>
<p>Next we run &#8220;<a href="http://php.net/manual/en/function.imagecreatetruecolor.php">imagecreatetruecolor</a>&#8221; which creates a new black image at our specified resolution. Think of it like creating a new document in Photoshop and setting your sizes to your thumbnail size preference. So we passed this a width and height in pixels (180, 112).</p>
<p>Then we run &#8220;<a href="http://php.net/manual/en/function.imagecopyresampled.php">imagecopyresampled</a>&#8221; which copies a rectangular portion of one image to another image, smoothly interpolating pixel values so that, in particular, reducing the size of an image still retains a great deal of clarity. In other words:<br />
we take our thumbnail image ($new, which is blank right now), then we copy over our large image ($src);<br />
we then pick the x and y co-ordinates we wish to start drawing our rectangle with our thumbnail (in this case we want to start in the top left corner, so we leave the two values at &#8217;0&#8242;),<br />
then do the same for our destination image (again we just use 0,0 to start in the top left);<br />
next we tell the function the width and height of the area we wish to draw in our thumbnail (so in this case we use the same dimensions of the thumbnail so we use all the space);<br />
and finally we select the area from the uploaded image ($src) and tell the function how much of its area we want to copy and scale down into the thumbnail image ($new). In this case we run the  &#8221;<a href="http://ca3.php.net/manual/en/function.imagesx.php">imagesx</a>&#8221; and &#8220;<a href="http://ca3.php.net/manual/en/function.imagesy.php">imagesy</a>&#8221; function on our large image to get the exact width and height, since we don&#8217;t know what the user uploaded.</p>
<p>Now you&#8217;d think that would be all, but we have only created an image in code, their is no actual JPG file write to our folder yet. So we run the &#8220;<a href="http://php.net/manual/en/function.imagejpeg.php">imagejpeg</a>&#8221; which we give the data of our newly created and re-sampled thumbnail image ($new) and tell it where to put it in our folders.</p>
<p>From here you my want to embellish upon this a bit, for instance, your want to check if the image exists before making a thumbnail out of it to avoid errors:</p>
<pre>if(file_exists("uploads/your_large_image.jpg")) {
 //Put code to make thumbnail in here
}</pre>
<p>That&#8217;s it! you have made a thumbnail image in PHP.</p>
<p>&nbsp;</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/php-creating-image-thumbnails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Branding: Kinshira</title>
		<link>http://www.digitalag.net/branding-kinshira/</link>
		<comments>http://www.digitalag.net/branding-kinshira/#comments</comments>
		<pubDate>Sun, 09 Dec 2012 23:19:42 +0000</pubDate>
		<dc:creator>Peter Singh-Vigilante</dc:creator>
				<category><![CDATA[Branding]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Business Cards]]></category>
		<category><![CDATA[Company Branding]]></category>
		<category><![CDATA[Logo Design]]></category>

		<guid isPermaLink="false">http://www.digitalag.net/?p=1052</guid>
		<description><![CDATA[Kinshira &#8211; Poetic Movement entertainment company asked us to spice up their branding, showing more of their fiery spirit. The symbol is based on a fire dance the performers do, in which they draw the symbol in the air. I wanted it to seem link the symbol had just been drawn with fire from the [...]]]></description>
				<content:encoded><![CDATA[<div itemscope itemtype="http://schema.org/BlogPosting"><p>Kinshira &#8211; Poetic Movement entertainment company asked us to spice up their branding, showing more of their fiery spirit. The symbol is based on a fire dance the performers do, in which they draw the symbol in the air. I wanted it to seem link the symbol had just been drawn with fire from the bottom up, and the audience gets the single glimpse of it before their eyes catch up with the fire.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.digitalag.net/branding-kinshira/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

 Served from: www.digitalag.net @ 2013-06-19 09:39:21 by W3 Total Cache -->