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:332997
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm