<?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>PetaPixel &#187; extract</title>
	<atom:link href="http://www.petapixel.com/tag/extract/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.petapixel.com</link>
	<description></description>
	<lastBuildDate>Thu, 09 Feb 2012 20:13:13 +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>How to Recover Deleted Photos from a Memory Card with PhotoRec</title>
		<link>http://www.petapixel.com/2010/10/13/how-to-recover-deleted-photos-from-a-memory-card-with-photorec/</link>
		<comments>http://www.petapixel.com/2010/10/13/how-to-recover-deleted-photos-from-a-memory-card-with-photorec/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 23:03:47 +0000</pubDate>
		<dc:creator>Michael Zhang</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[deleted]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[formatted]]></category>
		<category><![CDATA[memorycard]]></category>
		<category><![CDATA[photorec]]></category>
		<category><![CDATA[recover]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[walkthrough]]></category>

		<guid isPermaLink="false">http://www.petapixel.com/?p=17535</guid>
		<description><![CDATA[Last night my pastor emailed me telling me that he had accidentally deleted an entire folder of photographs off his Sony compact camera, and that Sony&#8217;s technical support informed him that it would cost $200-300 for them to recover the photos. After I got a hold of the memory card, I checked some of the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://files.petapixel.com/assets/uploads/2010/10/memorystick.jpg" alt="" title="memorystick" width="500" height="375" class="aligncenter size-full wp-image-17536" /></p>
<p>Last night my pastor emailed me telling me that he had accidentally deleted an entire folder of photographs off his Sony compact camera, and that Sony&#8217;s technical support informed him that it would cost $200-300 for them to recover the photos. After I got a hold of the memory card, I checked some of the <a href="http://www.petapixel.com/2009/05/25/recovering-lost-photographs/">recovery programs I&#8217;ve used</a> in the past, but discovered that they now require paid licenses to actual do recovery (though analysis is free). I then stumbled across <a href="http://www.cgsecurity.org/wiki/PhotoRec">PhotoRec</a>, a free and open source command-line application that&#8217;s bundled with <a href="http://www.cgsecurity.org/wiki/TestDisk">TestDisk</a>, something I&#8217;ve successfully used to regain access to inaccessible external hard drives. </p>
<p>In this post I&#8217;m going to show you how you can use PhotoRec to recover your photos if you&#8217;ve accidentally deleted them or formatted your memory card.<br />
<span id="more-17535"></span></p>
<h3>1. Stop Using the Memory Card</h3>
<p>In most cases, data that&#8217;s &#8220;deleted&#8221; from a memory card is actually still intact and recoverable. The &#8220;deletion&#8221; simply marks the space on card as &#8220;free&#8221; allowing data that&#8217;s written in the future to overwrite it. Special recovery programs can still retrieve the deleted data.</p>
<p>Thus, the most important step after you&#8217;ve accidentally deleted stuff is to stop using the card. In my case, my pastor had taken about 50 photographs after deleting 500 photos, which meant that at least 50 of the deleted photos were permanently lost.</p>
<h3>2. Download PhotoRec</h3>
<p>You can download PhotoRec for free for whatever operating system you use <a href="http://www.cgsecurity.org/wiki/TestDisk_Download">here</a>.</p>
<h3>3. Use a Card Reader</h3>
<p><img src="http://files.petapixel.com/assets/uploads/2010/10/cardreader.jpg" alt="" title="cardreader" width="500" height="329" class="aligncenter size-full wp-image-17546" /></p>
<p>Plug the card into a card reader so your computer can access it as a storage device or drive.</p>
<h3>4. Run the Program</h3>
<p>You can double click the program, but if you&#8217;re on Linux or a Mac you might need to run the program with root privileges (using sudo) to see the complete list of drives. See <a href="http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step#Run_PhotoRec_executable">this page</a> for more help on running the program.</p>
<h3>5. Step Through the Screens</h3>
<p><img src="http://files.petapixel.com/assets/uploads/2010/10/photorec.jpg" alt="" title="photorec" width="500" height="359" class="aligncenter size-full wp-image-17547" /></p>
<p>PhotoRec is pretty straightforward. Make your selections for each step for things such as disk to recover, partition type, destination to save recovered files to, etc&#8230; In most cases the correct option will be pre-selected for you. Since nothing will be changed or written on the memory card, you can always just try out the default selections and see if they work (they likely will). For a visual step-by-step guide for the different options, check out <a href="http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step">this page</a> on the PhotoRec wiki.</p>
<h3>6. Watch as Your Photos Are Extracted</h3>
<p>Using PhotoRec, I was able to recover all 450 of the photographs that weren&#8217;t overwritten by new images from the 512 megabyte Memory Stick card in about 4 minutes. The program can be used for normal hard drives and non-photo files as well.</p>
<p>There you have it &#8212; the story of how I saved someone $300 and 450 memories. If you ever accidentally delete photos or format your memory card, think back to this post and try using PhotoRec to undo your disaster.</p>
<hr />
<p><i><strong>Image credit</strong>: <a href='http://www.flickr.com/photos/please/7134220/'>MS Pro Readable &#8211; IMGP1973</a> by <a href='http://www.flickr.com/people/please/'>yuankuei</a>, <a href='http://www.flickr.com/photos/normanlowery/4994931270/'>card reader_1635-37-3</a> by <a href='http://www.flickr.com/people/normanlowery/'>mondays child</a></i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.petapixel.com/2010/10/13/how-to-recover-deleted-photos-from-a-memory-card-with-photorec/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Extracting Web Colors from Photographs</title>
		<link>http://www.petapixel.com/2009/11/16/extracting-web-colors-from-photographs/</link>
		<comments>http://www.petapixel.com/2009/11/16/extracting-web-colors-from-photographs/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 15:00:43 +0000</pubDate>
		<dc:creator>Michael Zhang</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[webpage]]></category>

		<guid isPermaLink="false">http://www.petapixel.com/?p=3737</guid>
		<description><![CDATA[Have you ever come across a website where the colors of the page are based on the photograph being displayed? Here are some examples of what I mean: Notice how the background color of the gallery isn&#8217;t fixed, but instead depends on the dominant color in the particular photograph being displayed. Now, you could use [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever come across a website where the colors of the page are based on the photograph being displayed? Here are some examples of what I mean:</p>
<p><img src="http://files.petapixel.com/assets/uploads/2009/11/color2.jpg" alt="color2" title="color2" width="600" height="357" class="aligncenter size-full wp-image-3747" /></p>
<p><img src="http://files.petapixel.com/assets/uploads/2009/11/color1.jpg" alt="color1" title="color1" width="600" height="353" class="aligncenter size-full wp-image-3751" /></p>
<p><img src="http://files.petapixel.com/assets/uploads/2009/11/color3.jpg" alt="color3" title="color3" width="600" height="354" class="aligncenter size-full wp-image-3748" /></p>
<p>Notice how the background color of the gallery isn&#8217;t fixed, but instead depends on the dominant color in the particular photograph being displayed. Now, you could use the colors extracted from photographs for a variety of purposes depending on your level of expertise and the purposes you have in mind.</p>
<p>In this post I&#8217;ll briefly cover a few ways you can extract useful web colors from your photos.</p>
<h3>The Color extract PHP Class</h3>
<p><strong>Difficulty: Hard</strong></p>
<p><img src="http://files.petapixel.com/assets/uploads/2009/11/colorextract.jpg" alt="colorextract" title="colorextract" width="155" height="300" class="alignleft size-full wp-image-3754" />If web development is you&#8217;re thing, and you&#8217;re comfortable with PHP, there&#8217;s a great PHP class over at <a href="http://www.phpclasses.org">phpclasses.org</a> that you can download called <a href="http://www.phpclasses.org/browse/package/3370.html">Color extract</a>.</p>
<p>Download it, upload it to your web server, include the class in your PHP file, and it can turn an image file path that you give it into an array of the most dominant color tones that appear in your photograph.</p>
<p>You can then use these color tones however you&#8217;d like. In the examples above, I simply took the most dominant color tone, as determined by Color extract, and used it as the background color for each page.</p>
<p>Though this is one of the more difficult ways to extract colors from your photographs, you can use it to make your web pages dynamic, automatically setting the background colors based on the colors in your photographs.</p>
<p>Similar classes or functions probably exist for your scripting/programming language of choice. Just do a Google search to find them!</p>
<h3>Manual Extraction</h3>
<p><strong>Difficulty: Medium</strong></p>
<p>A second way you can extract web (hex) colors from your photos is by eyeballing it and doing it manually. If you have Photoshop, you can use the eyedropper tool to select a color, and then open up the color picker to view the hex color code of that color. </p>
<p><img src="http://files.petapixel.com/assets/uploads/2009/11/photoshoppicker.jpg" alt="photoshoppicker" title="photoshoppicker" width="600" height="481" class="aligncenter size-full wp-image-3760" /></p>
<p>Most image editing programs should have a way for you to view the hex color of selected colors. Another option for manual extraction is to use a lightweight program designed specifically for extracting colors. Do a quick search on <a href="http://www.download.com">download.com</a> for &#8220;<a href="http://download.cnet.com/1770-20_4-0.html?query=color+picker&#038;tag=srch&#038;searchtype=downloads&#038;filterName=&#038;filter=">color picker</a>&#8220;, and you&#8217;ll find what you need for your operating system.</p>
<p>The downside to this method is that it might be more difficult to find a suitable color that works well, since colors can differ greatly from pixel to pixel. On the other hand it gives you a much greater degree of flexibility in choosing the color you&#8217;d like, since automated methods often fail when the color distribution in photographs is abnormal/non-uniform.</p>
<h3>ColorSuckr</h3>
<p><strong>Difficulty: Easy</strong></p>
<p><img src="http://files.petapixel.com/assets/uploads/2009/11/colorsuckr.jpg" alt="colorsuckr" title="colorsuckr" width="469" height="500" class="aligncenter size-full wp-image-3758" /></p>
<p>Finally, there&#8217;s quite a few web services that are more than happy to do all the work for you. <a href="http://colorsuckr.com/">ColorSuckr</a> is one such service. All you need to do is enter the URL of the image you&#8217;d like suckr the colors from, and the service will return the hex color codes of the dominant colors.</p>
<p>If you extract web colors from your photographs in ways I didn&#8217;t mention in this article, please share it with us in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.petapixel.com/2009/11/16/extracting-web-colors-from-photographs/feed/</wfw:commentRss>
		<slash:comments>1</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
Content Delivery Network via Rackspace Cloud Files: files.petapixel.com

Served from: www.petapixel.com @ 2012-02-09 12:38:33 -->
