Some time ago I recall seeing a thread, either on this list or the Allaire
forums (or both), about the CF server service crashing when CFX_GIFGD was
used to generate a thumbnail of certain images.
I never saw any solution to the problem posted, so I'm posting the solution
I found.
The problem occurs when CFX_GIFGD tries to generate a thumbnail of a certain
type of JPEG image. I don't know anything about this type of JPEG except
that it is called a "Progressive JPEG".
The solution I found was this:
Before creating a thumbnail of an image, use CFX_GIFGD to read in the image
and check its type. The CFX tag returns an empty string for the image type
if it is a Progressive JPEG.
<CFX_GIFGD ACTION="read" FILE="somePathAndImage">
<!--- this returns Variables.IMG_TYPE --->
<CFIF NOT Len(Trim(Variables.IMG_TYPE))>
<!--- don't create the thumb --->
<CFELSE>
<!--- its safe to create the thumb --->
</CFIF>
Since I never saw a solution posted I figured that other people might be
dealing with this somewhere, so I just thought I'd post my discovery.
Regards,
Seth Petry-Johnson
Argo Enterprise and Associates
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.