ok how do i catch this?? i have old data and images that where .uploaded. some one did a bunch of gif's but named them jpg. so i am using cfimage to display width and hieght. but it pucks when it trys to read the jpg..
<cfoutput query="getPonyLogo"> <cfif LEN(TRIM(#pony_logo#))> <cfset iTempDir = "d:/pathtothepony/images/logos"> <cfset iTempImage = (iTempDir &"/"& pony_logo)> <h3>Current logo for #pony_name#</h3> <cfif FileExists(iTempImage)> <img src="/pony/logos/#pony_logo#" alt="#pony_name#"> <cfimage action="info" source="#iTempDir#/#getPonyLogo.pony_logo#" structname="objImgInfo" /> <br /> Width: <cfif #objImgInfo.width# GT 300> <span class="style1">#objImgInfo.width#</span> <cfelse> #objImgInfo.width# </cfif> Height: <cfif #objImgInfo.height# GT 120> <span class="style1">#objImgInfo.height#</span> <cfelse> #objImgInfo.height# </cfif> <br /> Size: (#byteconvert(GetFileInfo ("##iTempDir##/#getPonyLogo.pony_logo#") .size)#) </cfif> </cfif> </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328462 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4