<CFX_IMGINFO FILENAME="file name" NAME="query name">
Check if a file is a GIF or a JPEG, and returns the image type, along with it's height, width and compression type.
Feel free to use this tag in any ways you see fit. Whilst there is no charge for using it, I would appreciate if you could drop me an E-Mail letting you know how you're using it.
FILENAME |
Required. The name of the file containing the Image. |
NAME |
Required. The Query in which the result is returned. |
<CFX_IMGINFO NAME="ImageInfot" FILENAME="c:\images\logo.gif"> <CFIF #GifSize.RecordCount# is 0> File is not a GIF or JPEG <CFELSE> File is a #ImageInfo.Type# with height #ImageInfo.Height# and width #ImageInfo.Width#. The compression type used is #ImageInfo.Compression#. </CFIF>
© 1997 Scott Howard, All Rights Reserved
scott@doc.net.au
More CF Tags available from http://www.doc.net.au/cfx