yep..running MX..but it's Standard Edition not Enterprise...guess that won't work then...but thanks...I'll hang on to that for other Enterprise projects
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
----- Original Message -----
From: Mike Townend
To: CF-Talk
Sent: Friday, November 28, 2003 11:40 AM
Subject: RE: Image dimension tag that works on Linux
if you are running MX or have java installed on there you could try...
function getImageDimensions(sFile)
{
var strRtn = StructNew();
var oImage = createObject("java","javax.swing.ImageIcon").init(sFile);
strRtn.Width = oImage.getIconWidth();
strRtn.Height = oImage.getIconHeight();
strRtn.FileName = GetFileFromPath(sFile);
return strRtn
}
where sFile is the full path to the image, i havnt tried this on a non
windows box but dont initially see why this wouldnt work
HTH
-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Friday, November 28, 2003 19:32
To: CF-Talk
Subject: Image dimension tag that works on Linux
Hey All,
I've tried a couple of custom tags on Linux to grab the width/height of an
uploaded image file (cfx_ImageSize and !cf_imgsize). These tags work great
on Windows and either error out or produce nonsense results on Linux (RedHat
9.0).
Does naybody have a tag or know of a tag that will check image file
dimensions that will run on Linux (even better if it will thumbnail as
well)?
I'd prefer tags specifically geared for these tasks....instead of going the
CFX_Image route (as the docs are a tad brutal for that tag....hehe).
TIA
Cheers
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- Image dimension tag that works on Linux Bryan Stevenson
- RE: Image dimension tag that works on Linux Mike Townend
- RE: Image dimension tag that works on Linux Bryan Stevenson
- RE: Image dimension tag that works on Linux Mike Townend
- Re: Image dimension tag that works on Lin... Bryan Stevenson