<?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: &#8220;Grayscaling&#8221; in non-IE browsers</title>
	<atom:link href="http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sun, 29 Aug 2010 12:37:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Spencer</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-22159</link>
		<dc:creator>Spencer</dc:creator>
		<pubDate>Tue, 13 Oct 2009 15:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-22159</guid>
		<description>You should update your post and &lt;a href=&quot;/demos/grayscale/&quot; rel=&quot;nofollow&quot;&gt;demo&lt;/a&gt; to reflect fixes to the stable channel (as of today, 10/24) in Google Chrome, which specifically addresses the issues seen here (see &lt;a href=&quot;http://code.google.com/p/chromium/issues/detail?id=22913&quot; rel=&quot;nofollow&quot;&gt;issue&lt;/a&gt; and &lt;a href=&quot;http://googlechromereleases.blogspot.com/2009/10/betastable-channel-update.html&quot; rel=&quot;nofollow&quot;&gt;post&lt;/a&gt;)</description>
		<content:encoded><![CDATA[<p>You should update your post and <a href="/demos/grayscale/">demo</a> to reflect fixes to the stable channel (as of today, 10/24) in Google Chrome, which specifically addresses the issues seen here (see <a href="http://code.google.com/p/chromium/issues/detail?id=22913">issue</a> and <a href="http://googlechromereleases.blogspot.com/2009/10/betastable-channel-update.html">post</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Lundmark</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-14244</link>
		<dc:creator>Erik Lundmark</dc:creator>
		<pubDate>Mon, 15 Jun 2009 18:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-14244</guid>
		<description>So, for the jQuery rookie guy, this prepares the image in a blog-post, activates grayscale on hover (and removes it afterwards). &lt;em&gt;Check your selectors first&lt;/em&gt;.

&lt;pre lang=&quot;javascript&quot;&gt;
$(document).ready(function() {
	$(&#039;#content img&#039;).hover(function() {
		grayscale( $(this) );
	}, function() {
		grayscale.reset( $(this) );
	});
	grayscale.prepare( $(&#039;#content img&#039;) );
});
&lt;/pre&gt;
@The Mafalian - Agreed on that, it leaks like a sinking ship... Safari 4 seems to handle the memory better, but fails when I apply the function on load. But if I use it in $().hover it works.</description>
		<content:encoded><![CDATA[<p>So, for the jQuery rookie guy, this prepares the image in a blog-post, activates grayscale on hover (and removes it afterwards). <em>Check your selectors first</em>.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.<span class="me1">ready</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
	$<span class="br0">&#40;</span><span class="st0">'#content img'</span><span class="br0">&#41;</span>.<span class="me1">hover</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
		grayscale<span class="br0">&#40;</span> $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span> <span class="br0">&#41;</span><span class="sy0">;</span>
	<span class="br0">&#125;</span><span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
		grayscale.<span class="me1">reset</span><span class="br0">&#40;</span> $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span> <span class="br0">&#41;</span><span class="sy0">;</span>
	<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
	grayscale.<span class="me1">prepare</span><span class="br0">&#40;</span> $<span class="br0">&#40;</span><span class="st0">'#content img'</span><span class="br0">&#41;</span> <span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p>@The Mafalian &#8211; Agreed on that, it leaks like a sinking ship&#8230; Safari 4 seems to handle the memory better, but fails when I apply the function on load. But if I use it in $().hover it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Remy Sharp</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-13988</link>
		<dc:creator>Remy Sharp</dc:creator>
		<pubDate>Thu, 11 Jun 2009 22:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-13988</guid>
		<description>Son &#039;novay...!  Damn, colour me impressed.  I needed this kind of functionality a couple of months ago and I was looking at some of the bleeding edge CSS3 SVG masks, but the problem is that they only currently work in Opera beta and only work properly on iframes.  Annoyingly I saw a demo of Opera doing exactly this to a web page, but it was using Opera&#039;s &lt;em&gt;internal&lt;/em&gt; browser rather than an app we can get our hands on.

Anyway, I knew it could be done via the canvas, but you&#039;ve gone ahead and done the hard work of putting down exactly &lt;em&gt;how&lt;/em&gt; that&#039;s done.

Bottom line: impressed. Nice one.

I should add, I was going to use the effect on jQuery for Designers, for when the user was watching the video, they could click &quot;lights off&quot; and it would greyscale the entire background (probably layering over a big opacity: 60 div) letting the user focus on the video.</description>
		<content:encoded><![CDATA[<p>Son &#8216;novay&#8230;!  Damn, colour me impressed.  I needed this kind of functionality a couple of months ago and I was looking at some of the bleeding edge CSS3 SVG masks, but the problem is that they only currently work in Opera beta and only work properly on iframes.  Annoyingly I saw a demo of Opera doing exactly this to a web page, but it was using Opera&#8217;s <em>internal</em> browser rather than an app we can get our hands on.</p>
<p>Anyway, I knew it could be done via the canvas, but you&#8217;ve gone ahead and done the hard work of putting down exactly <em>how</em> that&#8217;s done.</p>
<p>Bottom line: impressed. Nice one.</p>
<p>I should add, I was going to use the effect on jQuery for Designers, for when the user was watching the video, they could click &#8220;lights off&#8221; and it would greyscale the entire background (probably layering over a big opacity: 60 div) letting the user focus on the video.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-12082</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sun, 17 May 2009 21:59:18 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-12082</guid>
		<description>Thanks for all the comments! Much appreciated!

@Thomas, thanks for the explanation; I didn&#039;t originally understand the reason behind those different figures, it makes sense now! Also, that&#039;s some really cool work with the anaglyph generator!

@Mafalian, I&#039;m afraid that&#039;s to be expected; processing images using canvas takes quite a lot of memory + processing time.</description>
		<content:encoded><![CDATA[<p>Thanks for all the comments! Much appreciated!</p>
<p>@Thomas, thanks for the explanation; I didn&#8217;t originally understand the reason behind those different figures, it makes sense now! Also, that&#8217;s some really cool work with the anaglyph generator!</p>
<p>@Mafalian, I&#8217;m afraid that&#8217;s to be expected; processing images using canvas takes quite a lot of memory + processing time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Milburn</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-11726</link>
		<dc:creator>Thomas Milburn</dc:creator>
		<pubDate>Wed, 13 May 2009 07:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-11726</guid>
		<description>Nice work!

If you want to know why the conversion numbers are used its because your eye is much more sensitive to green than red than blue. Generally accepted values have been calculated by the NTSC (National Television System Committee) as Red: 0.299 Green: 0.587 and Blue: 0.114 but in fact the values will be slightly different depending on the screen you are using. It doesn&#039;t really matter that much.

I&#039;ve also found the canvas tool to be incredibly useful. I&#039;ve used it to generate the &lt;a href=&quot;http://instantsolve.net/mandelbrot.htm&quot; rel=&quot;nofollow&quot;&gt;mandelbrot set&lt;/a&gt; and to &lt;a href=&quot;http://instantsolve.net/blog/2009/04/javascript-anaglyph-maker/&quot; rel=&quot;nofollow&quot;&gt;create anaglyphs&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Nice work!</p>
<p>If you want to know why the conversion numbers are used its because your eye is much more sensitive to green than red than blue. Generally accepted values have been calculated by the NTSC (National Television System Committee) as Red: 0.299 Green: 0.587 and Blue: 0.114 but in fact the values will be slightly different depending on the screen you are using. It doesn&#8217;t really matter that much.</p>
<p>I&#8217;ve also found the canvas tool to be incredibly useful. I&#8217;ve used it to generate the <a href="http://instantsolve.net/mandelbrot.htm">mandelbrot set</a> and to <a href="http://instantsolve.net/blog/2009/04/javascript-anaglyph-maker/">create anaglyphs</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Mafalian</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-11686</link>
		<dc:creator>The Mafalian</dc:creator>
		<pubDate>Tue, 12 May 2009 20:28:26 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-11686</guid>
		<description>your script make firefox use more memory, it increase to 600mo,
i don&#039;t know what&#039;s the probleme</description>
		<content:encoded><![CDATA[<p>your script make firefox use more memory, it increase to 600mo,<br />
i don&#8217;t know what&#8217;s the probleme</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Ford</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-11634</link>
		<dc:creator>Andy Ford</dc:creator>
		<pubDate>Tue, 12 May 2009 05:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-11634</guid>
		<description>This is very cool. Nice work!</description>
		<content:encoded><![CDATA[<p>This is very cool. Nice work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Soh Tanaka</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-11629</link>
		<dc:creator>Soh Tanaka</dc:creator>
		<pubDate>Tue, 12 May 2009 03:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-11629</guid>
		<description>That&#039;s pretty dope! Thanks for sharing :-)</description>
		<content:encoded><![CDATA[<p>That&#8217;s pretty dope! Thanks for sharing <img src='http://james.padolsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cssrain</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-11624</link>
		<dc:creator>cssrain</dc:creator>
		<pubDate>Tue, 12 May 2009 01:33:33 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-11624</guid>
		<description>Good work.I will use it in my work.</description>
		<content:encoded><![CDATA[<p>Good work.I will use it in my work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Lundmark</title>
		<link>http://james.padolsey.com/javascript/grayscaling-in-non-ie-browsers/comment-page-1/#comment-11611</link>
		<dc:creator>Erik Lundmark</dc:creator>
		<pubDate>Mon, 11 May 2009 22:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=807#comment-11611</guid>
		<description>Wow, I thought I&#039;d have to wait a few years for this! Nice, nice, thank you so much.
Oh, doesn&#039;t work in Safari? Works for me :) (&lt;a href=&quot;http://elundmark.se/filer/safari4-grayscale.js.png&quot; rel=&quot;nofollow&quot;&gt;screenshot&lt;/a&gt;)</description>
		<content:encoded><![CDATA[<p>Wow, I thought I&#8217;d have to wait a few years for this! Nice, nice, thank you so much.<br />
Oh, doesn&#8217;t work in Safari? Works for me <img src='http://james.padolsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  (<a href="http://elundmark.se/filer/safari4-grayscale.js.png">screenshot</a>)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
