you can use the CF_GifGD and when you encounter a progressive JPEG use
CGX_Image and CFX_ImageInfo to handle the resize.. I haven't used CF_GifGD
but I plan on using it with this combination..
Brian Silvers
[EMAIL PROTECTED]
X-Net Web Systems Senior Developer
ColdFusion, SQL, PHP, Perl, Dynamic Content
Database Integration, Flash, and more!
----- Original Message -----
From: "ColdFusionKid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 12, 2000 10:10 AM
Subject: Re: Thumbnail tags
> I'd use Jukka Manner's updated CFX_Image tag instead of the old CFX_GifGD
> tag. It has support for progressive jpegs as far as I can tell, it also
has
> much more features.
>
>
> ----- Original Message -----
> From: "Seth Petry-Johnson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, July 11, 2000 8:30 PM
> Subject: Re: Thumbnail tags
>
>
> > > I've been using cf_gifgd from the tag gallery
> > > works good for me, but progressive jpg's will
> > > break it. If anyone has any better solutions I'd
> > > like to know also.
> >
> > I too have been stuck with cfx_gifgd and its problems with progressive
> > JPEGs. I've looked, but haven't found anything that is a good
replacement.
> > If anyone knows of a good alternative, I too would be very interested.
> >
> > However, I do know how to test for progressive JPEGs before resizing
them.
> > The problem is that when CFX_GIFGD is called to resize a progressive
JPEG
> it
> > causes the entire CF service to crash and restart, which is obviously a
> bad
> > thing. I don't know enough about JPEGs (or the CFX code) to know why
this
> > is.
> >
> > To ensure that this won't happen, use CFX_GIFGD to read the file before
> you
> > resize it. The READ action returns a series of variables about the
image,
> > one of which is the file type. If the image is a progressive JPEG the
> type
> > variable will contain an empty string. Just wrap the resize action in a
> > CFIF that checks the length of the type variable.
> >
> > For example:
> >
> > <!--- check the file type --->
> > <CFX_GIFGD ACTION="read" FILE="#yourFile#">
> > <CFIF NOT Len(Trim(Variables.IMG_TYPE))>
> > <!--- progressive JPEG! put some sort of error message here --->
> > <CFELSE>
> > <!--- image can be safely resized --->
> > <CFX_GIFGD ACTION="resize" blah blah>
> > </CFIF>
> >
> > Just a little workaround I discovered. Hope it helps.
> >
> > Regards,
> > Seth Petry-Johnson
> > Argo Enterprise and Associates
> >
>
> --------------------------------------------------------------------------
> ----
> > Archives: http://www.mail-archive.com/[email protected]/
> > 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.
> >
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> 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.
>
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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.