Thanks for the suggestion JJ, but I figured out that by using CFX_IMAGE2 
alongside CFX_IMAGE to handle PJPEG file types, it works great.  

So I just use <CFX_IMAGE2 ACTION="READ" 
FILE="C:\Domains\mydomain\images\filename.jpg"> to read any type of uploaded 
photo...

....and then IF the photo width is too large I use <CFX_IMAGE2 ACTION="RESIZE" 
FILE="C:\Domains\mydomain\images\filename.jpg" 
OUTPUT="C:\Domains\mydomain\images\filename.jpg" QUALITY="90" X="600">

ELSE IF the width is fine, then I use <CFX_IMAGE2 ACTION="CONVERT" 
FILE="C:\Domains\mydomain\images\filename.jpg" 
OUTPUT="C:\Domains\mydomain\images\filename.jpg" TYPE="JPEG" QUALITY="90"> to 
make sure that any PJPEG files are coverted to regular JPEG

After that I can continue to use any CFX_IMAGE tags I want and there will be no 
"not a valid image file" error thrown by Cold Fusion.

I hope this helps anyone else with the same problem I had!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282328
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to