I do not know. On the one hand it would be nice if it could "guess" a bit
better. But on the other, these images are obviously malformed/misnamed. So I
guess you have to work around it.
Another option might be to do a try/catch. Inside the catch, try and read in
the image as binary instead:
<cfset bytes = FileReadBinary("c:\path\NotReallyAJPEG.jpg")>
<cfset img = ImageNew(bytes)>
<!--- do not assume it is even is a valid image! --->
<cfif IsImage(img)>
... if it is an image, do something here ...
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:328470
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4