Good stuff, Chuck! I've been using cfimage like crazy since CF8, but there are so many other image functions I haven't used or am not even aware of! Time to have a look at them!
Rick -----Original Message----- From: Chuck Weidler [mailto:h...@coldfusionguru.com] Sent: Monday, April 19, 2010 4:08 PM To: cf-talk Subject: Re: Can this be done? I don't see where you mention what version of ColdFusion you are using, but if you are using CF8+ then here is what I do. I also have a site that uploads images. <cfimage action="read" source="C:\ImgStore\TheUploadedImage.jpg" name="myImage"> <cfset Info = ImageInfo(myImage)> <!--- LOOK AT THE COLORSPACE TO SEE IF IT IS AN IMAGE THAT A BROWSER CAN USE ---> <cfif NOT FindNoCase("CMYK", Info.colormodel.colorspace)> <!--- DO SOMETHING WITH THE IMAGE ---> <cfelse> <!--- DELETE THE IMAGE OR DO SOMETHING ELSE WITH THE IMAGE ---> </cfif> HTH Chuck ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:332998 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm