CF_IMGSIZE 1.7

Created by Marcel Bennett for Serious Multimedia, Victoria, Australia

The following properties can be set in CF_IMG or CF_IMGSIZE
as they are all part of the CF_IMGSIZE tag although for better functionality with images it is best to use the tags together.
For more information check the details at cfdev.iamserious.com.au

NEW FEATURES SINCE v1.6

Version history

home

NOTE: This tag currently only works for TIFF(NEW!), SWF, JPEG, GIF, BMP and PNG if you require it for another graphic type please contact me and I will add it to the next version!

MAXWIDTH=value MAXHEIGHT=value
The MAXWIDTH and MAXHEIGHT attributes tell the tag the maximum allowable space for an image. If the author specifies these, the tag will draw out the width and height of the image and set width and height attributes to proportionally reduce the size of the image to acceptable levels. Both attributes are optional and can either be used alone together or not at all.

OUTPUT="a name to define returning variables"
The OUTPUT attribute tells the tag the required name or returning variables.

<CF_IMG SRC="triangle.gif" OUTPUT="serious">
 
Will return the following variables:
(The original file dimensions)
serious_ImgFileWidth
serious_ImgFileHeight
(The recalculated file dimensions)
serious_ImgWidth
serious_ImgHeight
serious_ImgType
serious_ImgKBytes
serious_ImgResized
 
<CF_IMG SRC="triangle.gif">
 
Will return the following variables:
(The original file dimensions)
ImgFileWidth
ImgFileHeight
(The recalculated file dimensions)
ImgWidth
ImgHeight
ImgType
ImgKBytes
ImgResized

CWS ERROR
The CWS error thrown can be caught using cfcatch to return that the file type is SWC instead of SWF.
SWC is the Flash MX compressed standard that is not possible to decompress easily.
The error thrown is as follows:

<cfthrow type="CWS" message="Cannot read compressed SWF format.">

NEW FEATURES IN v1.6

NEW OUTPUT VARIABLES

OUTPUT="a name to define returning variables"
The OUTPUT attribute tells the tag the required name or returning variables.

<CF_IMG SRC="triangle.gif" OUTPUT="serious">
 
Will return the following variables:
serious_ImgFileWidth (The original file dimensions)
serious_ImgFileHeight (The original file dimensions)
serious_ImgWidth
serious_ImgHeight
serious_ImgType
serious_ImgKBytes
serious_ImgResized (Returns 1 or 0, 1 being that the output dimension has been resized)
 
<CF_IMG SRC="triangle.gif">
 
Will return the following variables:
ImgFileWidth (The original file dimensions)
ImgFileHeight (The original file dimensions)
ImgWidth
ImgHeight
ImgType
ImgKBytes
ImgResized (Returns 1 or 0, 1 being that the output dimension has been resized)

NOTE: Unfortunately there is still no way I know of to allow for the use of a remote address on another web site.

VERSION HISTORY

1.7(21-Aug-2003)

Fixed

1.6(17-Oct-2002)

Added

Fixed

1.5(01-Aug-2002)

Added

1.4(12-Feb-2002)

Added

1.3(27-Jan-2002) Don't remember, never kept a copy.

1.2(01-Sep-2001)

Added

Fixed

1

Added

© 2001,2002,2003 last update: 21-Aug-2003, Marcel @ Serious Multimedia