<?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: Design of an Image Resizing Module</title>
	<atom:link href="http://nathanaeljones.com/196/design-of-an-image-resizing-module/feed/" rel="self" type="application/rss+xml" />
	<link>http://nathanaeljones.com/196/design-of-an-image-resizing-module/</link>
	<description>Ramblings of a computer linguist</description>
	<lastBuildDate>Sat, 20 Feb 2010 18:58:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Nathanael Jones</title>
		<link>http://nathanaeljones.com/196/design-of-an-image-resizing-module/comment-page-1/#comment-170</link>
		<dc:creator>Nathanael Jones</dc:creator>
		<pubDate>Mon, 09 Nov 2009 14:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://66.29.219.39/?p=196#comment-170</guid>
		<description>I&#039;m sure it is very fast when you only are requesting one image at a time. I suggest trying it with a large photo (say a 5MB jpeg) and placing 100 images on a page to help simulate concurrent users.
Make sure to watch your w3p.exe memory use during that time.

Have you read the article on image resizing pitfalls? I don&#039;t want to repeat anything that you&#039;ve already read.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sure it is very fast when you only are requesting one image at a time. I suggest trying it with a large photo (say a 5MB jpeg) and placing 100 images on a page to help simulate concurrent users.<br />
Make sure to watch your w3p.exe memory use during that time.</p>
<p>Have you read the article on image resizing pitfalls? I don&#8217;t want to repeat anything that you&#8217;ve already read.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonesy</title>
		<link>http://nathanaeljones.com/196/design-of-an-image-resizing-module/comment-page-1/#comment-143</link>
		<dc:creator>Jonesy</dc:creator>
		<pubDate>Fri, 06 Nov 2009 11:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://66.29.219.39/?p=196#comment-143</guid>
		<description>Nathanael,

What do you think of this in-memory Database solution (VB)? It&#039;s damn fast:
(Core is just a helper module that returns a blob from an SQL server table)


                Dim arrImage As Byte() = Core.data_select_image(&quot;select blobImage from tblMyTable where intMyTablePK = &quot; &amp; context.Request.QueryString(&quot;imageID&quot;), &quot;blobImage&quot;, context.Server.MapPath(&quot;.&quot;))
                
                If Not arrImage Is Nothing Then
                    Dim bmp As Bitmap = CType(Bitmap.FromStream(New MemoryStream(arrImage)), Bitmap)
                    Dim output As Bitmap = New Bitmap(bmp, New Size(100, 100))
                    context.Response.Clear()
                    context.Response.ContentType = &quot;image/jpeg&quot;
                    output.Save(context.Response.OutputStream, ImageFormat.Jpeg)
                    context.Response.End()
                End If

Obviously we can pass in the thumbnail dimensions, but it&#039;s fine for most users needs (20 - 100 images on a page for example). The code lives in a handler page for speed - getimage.ashx or whatever.</description>
		<content:encoded><![CDATA[<p>Nathanael,</p>
<p>What do you think of this in-memory Database solution (VB)? It&#8217;s damn fast:<br />
(Core is just a helper module that returns a blob from an SQL server table)</p>
<p>                Dim arrImage As Byte() = Core.data_select_image(&#8220;select blobImage from tblMyTable where intMyTablePK = &#8221; &amp; context.Request.QueryString(&#8220;imageID&#8221;), &#8220;blobImage&#8221;, context.Server.MapPath(&#8220;.&#8221;))</p>
<p>                If Not arrImage Is Nothing Then<br />
                    Dim bmp As Bitmap = CType(Bitmap.FromStream(New MemoryStream(arrImage)), Bitmap)<br />
                    Dim output As Bitmap = New Bitmap(bmp, New Size(100, 100))<br />
                    context.Response.Clear()<br />
                    context.Response.ContentType = &#8220;image/jpeg&#8221;<br />
                    output.Save(context.Response.OutputStream, ImageFormat.Jpeg)<br />
                    context.Response.End()<br />
                End If</p>
<p>Obviously we can pass in the thumbnail dimensions, but it&#8217;s fine for most users needs (20 &#8211; 100 images on a page for example). The code lives in a handler page for speed &#8211; getimage.ashx or whatever.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
