<?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: Images and CFDocument performance</title>
	<atom:link href="http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/</link>
	<description>My Views on ColdFusion, Java and related technologies</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:41:45 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cupola</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-1143</link>
		<dc:creator>cupola</dc:creator>
		<pubDate>Thu, 22 Sep 2011 04:07:06 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-1143</guid>
		<description>I think is is still an issue with CF9</description>
		<content:encoded><![CDATA[<p>I think is is still an issue with CF9</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charlie arehart</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-993</link>
		<dc:creator>charlie arehart</dc:creator>
		<pubDate>Thu, 13 Jan 2011 22:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-993</guid>
		<description>Hey Rupesh, in case anyone comes along here now 3+ years later, can you report if this is no longer an issue for CF9? Or if perhaps any hotfix or CFH for CF8 may have changed things? Or 8.01, if perhaps this was written before it came out?</description>
		<content:encoded><![CDATA[<p>Hey Rupesh, in case anyone comes along here now 3+ years later, can you report if this is no longer an issue for CF9? Or if perhaps any hotfix or CFH for CF8 may have changed things? Or 8.01, if perhaps this was written before it came out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-466</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Thu, 06 Aug 2009 09:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-466</guid>
		<description>Thanks Charlie!
JVM update will not fix this as JAI is not part of the JVM. It is a separate library that is meant for doing advanced Imaging (JAI stands for Java advanced Imaging)

I have not checked if this bug has been fixed in any latest release of JAI. The last stable release they had was 1.1 which is what is shipped with ColdFusion 8. The 1.2 release (https://jai-imageio.dev.java.net/binary-builds.html) is still in development. 
So I think we have to live with the workaround for the time being if this issue is hit.</description>
		<content:encoded><![CDATA[<p>Thanks Charlie!<br />
JVM update will not fix this as JAI is not part of the JVM. It is a separate library that is meant for doing advanced Imaging (JAI stands for Java advanced Imaging)</p>
<p>I have not checked if this bug has been fixed in any latest release of JAI. The last stable release they had was 1.1 which is what is shipped with ColdFusion 8. The 1.2 release (<a href="https://jai-imageio.dev.java.net/binary-builds.html" rel="nofollow">https://jai-imageio.dev.java.net/binary-builds.html</a>) is still in development.<br />
So I think we have to live with the workaround for the time being if this issue is hit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie Arehart</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-447</link>
		<dc:creator>Charlie Arehart</dc:creator>
		<pubDate>Mon, 03 Aug 2009 14:26:49 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-447</guid>
		<description>Yes, very nice article and fix, Rupesh. 

I do have a question, though, for those who may come along (like me) long after you wrote this in Dec 07. 

You mention the first problem being a bug in the JAI (Java advanced imaging) codecLib that ColdFusion 8 uses. Do you know of any way to fix that, instead? Is it possible that a later JVM update may have incorporated that? 

Similarly, how about the problem you mention when the debug mode is enabled? Do you know if any 1.6 jvm update may have fixed that?

I do realize that technically CF doesn&#039;t support any but the base JVM 1.6.0_04 that it comes with, but sometimes people will have applied an update to the JVM to get the important classloader hotfix (in 1.6.0_10). So do you know if that may have addressed this? 

Or for anyone with this problem who can recreate it, if you&#039;re open to trying the jvm update, can you report if it helps? :-)

I only ask because if the jvm update fixes things, then one would not suffer the potential problems that you outline with regard to doing the other workarounds you suggest.

Either way, again, thanks for digging into and resolving thie problem.</description>
		<content:encoded><![CDATA[<p>Yes, very nice article and fix, Rupesh. </p>
<p>I do have a question, though, for those who may come along (like me) long after you wrote this in Dec 07. </p>
<p>You mention the first problem being a bug in the JAI (Java advanced imaging) codecLib that ColdFusion 8 uses. Do you know of any way to fix that, instead? Is it possible that a later JVM update may have incorporated that? </p>
<p>Similarly, how about the problem you mention when the debug mode is enabled? Do you know if any 1.6 jvm update may have fixed that?</p>
<p>I do realize that technically CF doesn&#8217;t support any but the base JVM 1.6.0_04 that it comes with, but sometimes people will have applied an update to the JVM to get the important classloader hotfix (in 1.6.0_10). So do you know if that may have addressed this? </p>
<p>Or for anyone with this problem who can recreate it, if you&#8217;re open to trying the jvm update, can you report if it helps? <img src='http://www.rupeshk.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I only ask because if the jvm update fixes things, then one would not suffer the potential problems that you outline with regard to doing the other workarounds you suggest.</p>
<p>Either way, again, thanks for digging into and resolving thie problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MB4042</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-309</link>
		<dc:creator>MB4042</dc:creator>
		<pubDate>Tue, 02 Dec 2008 18:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-309</guid>
		<description>I have a weird one. I developed a fairly complex cfdocument report with JPEG images. It worked fine in my test environment, producing a 185 page document in about 10 seconds. &lt;br/&gt;&lt;br/&gt;But, as soon as I moved it over to production (CF 7.0.2 Cumulative Hotfix 3 running on Server 2003/IIS 6.0), it takes 30-60 seconds for even 5 pages of the report.&lt;br/&gt;&lt;br/&gt;Then, I tried a funny thing. I switched the images to PNG, and the PDF created as quick in production as it did in my test environment. &lt;br/&gt;&lt;br/&gt;My images are all RGB, but JPEG&#039;s slow down the report in my production environment.&lt;br/&gt;&lt;br/&gt;java -version gives me the same in my test and production environments.</description>
		<content:encoded><![CDATA[<p>I have a weird one. I developed a fairly complex cfdocument report with JPEG images. It worked fine in my test environment, producing a 185 page document in about 10 seconds. </p>
<p>But, as soon as I moved it over to production (CF 7.0.2 Cumulative Hotfix 3 running on Server 2003/IIS 6.0), it takes 30-60 seconds for even 5 pages of the report.</p>
<p>Then, I tried a funny thing. I switched the images to PNG, and the PDF created as quick in production as it did in my test environment. </p>
<p>My images are all RGB, but JPEG&#8217;s slow down the report in my production environment.</p>
<p>java -version gives me the same in my test and production environments.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: webRat</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-308</link>
		<dc:creator>webRat</dc:creator>
		<pubDate>Fri, 11 Jan 2008 18:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-308</guid>
		<description>@Rupesh, he said he created an action, so I&#039;m assuming that means he created a Photoshop action that manipulates the color profile to sRGB.</description>
		<content:encoded><![CDATA[<p>@Rupesh, he said he created an action, so I&#8217;m assuming that means he created a Photoshop action that manipulates the color profile to sRGB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupesh Kumar</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-307</link>
		<dc:creator>Rupesh Kumar</dc:creator>
		<pubDate>Sat, 15 Dec 2007 17:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-307</guid>
		<description>@Hemant, thanks !&lt;br/&gt;&lt;br/&gt;@Creole,I am glad to know that it helped and thanks for the nice comment. &lt;br/&gt;I am curious to know how do you change the color profile to sRGB programmatically on upload? Are you using cfimage for that?</description>
		<content:encoded><![CDATA[<p>@Hemant, thanks !</p>
<p>@Creole,I am glad to know that it helped and thanks for the nice comment. <br />I am curious to know how do you change the color profile to sRGB programmatically on upload? Are you using cfimage for that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: creole</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-306</link>
		<dc:creator>creole</dc:creator>
		<pubDate>Sat, 15 Dec 2007 17:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-306</guid>
		<description>As the one who brought up this issue, I can say from the bottom of my heart, THANK YOU Rupesh. I just tried your simple fix, which was to resave the images with a different color profile and it worked like a charm. Not to mention that it also reduced the file size of all of the images used in this particular proposal from 1.35 megs to 776k. That&#039;s what you get when you let the client upload their own images.&lt;br/&gt;&lt;br/&gt;I created an action for the client which alters the built-in color profile to sRGB. I&#039;ll push that to them and ask them to change their file saving strategy.&lt;br/&gt;&lt;br/&gt;You rock my friend!</description>
		<content:encoded><![CDATA[<p>As the one who brought up this issue, I can say from the bottom of my heart, THANK YOU Rupesh. I just tried your simple fix, which was to resave the images with a different color profile and it worked like a charm. Not to mention that it also reduced the file size of all of the images used in this particular proposal from 1.35 megs to 776k. That&#8217;s what you get when you let the client upload their own images.</p>
<p>I created an action for the client which alters the built-in color profile to sRGB. I&#8217;ll push that to them and ask them to change their file saving strategy.</p>
<p>You rock my friend!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hemant</title>
		<link>http://www.rupeshk.org/blog/index.php/2007/12/images-and-cfdocument-performance/comment-page-1/#comment-305</link>
		<dc:creator>hemant</dc:creator>
		<pubDate>Sat, 15 Dec 2007 03:41:00 +0000</pubDate>
		<guid isPermaLink="false">http://rupesh106.wordpress.com/2007/12/14/images-and-cfdocument-performance/#comment-305</guid>
		<description>Excellent article Rupesh!</description>
		<content:encoded><![CDATA[<p>Excellent article Rupesh!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

