<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Get image dimensions</title>
	<atom:link href="http://awads.net/wp/2005/06/16/get-image-dimensions/feed/" rel="self" type="application/rss+xml" />
	<link>http://awads.net/wp/2005/06/16/get-image-dimensions/</link>
	<description>News, views, tips and tricks on Oracle and other fun stuff</description>
	<lastBuildDate>Wed, 09 May 2012 16:54:41 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Louis</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-51526</link>
		<dc:creator>Louis</dc:creator>
		<pubDate>Tue, 11 Sep 2007 14:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-51526</guid>
		<description>&lt;p&gt;Hi, came across this site while looking for a solution to finding image dimensions in CF. Eventually came across a great CFC that other readers may find useful. Download the CFC from &lt;a href=&quot;http://www.olimpo.ch/tmt/cfc/tmt_img/&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It can also crop/resize etc etc but I only wanted to get the image dimensions.&lt;/p&gt;

&lt;p&gt;In case it&#039;s useful, here&#039;s a severely chopped version of my code:&lt;/p&gt;

&lt;pre&gt;
&lt;cfparam name=&quot;URL.imgsrc&quot; default=&quot;&quot;&gt;

&lt;cfscript&gt;
if (URL.imgsrc is not &quot;&quot;) {
    imgObj=CreateObject(&quot;component&quot;, &quot;tmt_img&quot;);
    
    theWidth = imgObj.getDimensions(URL.imgsrc).width;
    theHeight = imgObj.getDimensions(URL.imgsrc).height;
    
    writeOutput(&quot;Image width = &quot; &amp; theWidth &amp; &quot;&lt;br /&gt;&quot;);
    writeOutput(&quot;Image height = &quot; &amp; theHeight);
} else {
    writeOutput(&quot;Need image path (absolute or local)&quot;);
}
&lt;/cfscript&gt;
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, came across this site while looking for a solution to finding image dimensions in CF. Eventually came across a great CFC that other readers may find useful. Download the CFC from <a href="http://www.olimpo.ch/tmt/cfc/tmt_img/" rel="nofollow">here</a>.</p>

<p>It can also crop/resize etc etc but I only wanted to get the image dimensions.</p>

<p>In case it&#8217;s useful, here&#8217;s a severely chopped version of my code:</p>

<pre>
&lt;cfparam name=&quot;URL.imgsrc&quot; default=&quot;&quot;&gt;

&lt;cfscript&gt;
if (URL.imgsrc is not &quot;&quot;) {
    imgObj=CreateObject(&quot;component&quot;, &quot;tmt_img&quot;);
    
    theWidth = imgObj.getDimensions(URL.imgsrc).width;
    theHeight = imgObj.getDimensions(URL.imgsrc).height;
    
    writeOutput(&quot;Image width = &quot; &amp; theWidth &amp; &quot;&lt;br /&gt;&quot;);
    writeOutput(&quot;Image height = &quot; &amp; theHeight);
} else {
    writeOutput(&quot;Need image path (absolute or local)&quot;);
}
&lt;/cfscript&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phillip Senn</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-50885</link>
		<dc:creator>Phillip Senn</dc:creator>
		<pubDate>Thu, 07 Jun 2007 22:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-50885</guid>
		<description>&lt;p&gt;This is a great solution.
I&#039;ll use it till hostmysite starts using cf8.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is a great solution.
I&#8217;ll use it till hostmysite starts using cf8.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-50466</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Mon, 02 Apr 2007 00:07:01 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-50466</guid>
		<description>&lt;p&gt;&lt;a href=&quot;http://www.google.com/search?q=coldfusion+hosting+createobject&quot; rel=&quot;nofollow&quot;&gt;google.com/search?q=coldfusion+hosting+createobject&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p><a href="http://www.google.com/search?q=coldfusion+hosting+createobject" rel="nofollow">google.com/search?q=coldfusion+hosting+createobject</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dev-Lano</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-50452</link>
		<dc:creator>Dev-Lano</dc:creator>
		<pubDate>Wed, 28 Mar 2007 09:21:37 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-50452</guid>
		<description>&lt;p&gt;some one point me to a shared host that will allow createObject?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>some one point me to a shared host that will allow createObject?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-39763</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Tue, 08 Aug 2006 14:10:58 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-39763</guid>
		<description>&lt;p&gt;Re: Bart
I&#039;d use that but i&#039;m using this script for the display of already uploaded images. So it would do that whenever someone accessed the page.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Re: Bart
I&#8217;d use that but i&#8217;m using this script for the display of already uploaded images. So it would do that whenever someone accessed the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-39761</link>
		<dc:creator>Bart</dc:creator>
		<pubDate>Tue, 08 Aug 2006 14:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-39761</guid>
		<description>&lt;p&gt;If it&#039;s primarily for your purposes, then you might as well use the cffile option and strip it out once you&#039;re done.&lt;/p&gt;

&lt;p&gt;It&#039;s far from ideal but it works.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>If it&#8217;s primarily for your purposes, then you might as well use the cffile option and strip it out once you&#8217;re done.</p>

<p>It&#8217;s far from ideal but it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-39756</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Tue, 08 Aug 2006 14:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-39756</guid>
		<description>&lt;p&gt;I added the cfheader like you mentioned with no luck. Fortunatly I dont plan on having people updating existing photos too often. Its just one of those things.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I added the cfheader like you mentioned with no luck. Fortunatly I dont plan on having people updating existing photos too often. Its just one of those things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-39378</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Tue, 08 Aug 2006 04:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-39378</guid>
		<description>&lt;p&gt;Bart, I know you have tried to post your last comment several times. I apologize. The blog&#039;s spam filter mistakenly identified your comment as spam (I have no idea why).&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Bart, I know you have tried to post your last comment several times. I apologize. The blog&#8217;s spam filter mistakenly identified your comment as spam (I have no idea why).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie Awad</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-39357</link>
		<dc:creator>Eddie Awad</dc:creator>
		<pubDate>Tue, 08 Aug 2006 04:29:09 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-39357</guid>
		<description>&lt;p&gt;Try using cfheader as I mentioned in my comment above.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Try using cfheader as I mentioned in my comment above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://awads.net/wp/2005/06/16/get-image-dimensions/comment-page-1/#comment-39031</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Mon, 07 Aug 2006 21:34:55 +0000</pubDate>
		<guid isPermaLink="false">http://awads.net/wp/?p=12#comment-39031</guid>
		<description>&lt;p&gt;After searching online and finding nothing new, I checked my code and page again and it picked up the new dimensions. Apparantly the cache expired. Any idea how I can adjust the caching time for this?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>After searching online and finding nothing new, I checked my code and page again and it picked up the new dimensions. Apparantly the cache expired. Any idea how I can adjust the caching time for this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

