Link to home
Start Free TrialLog in
Avatar of siva350
siva350

asked on

get image and swf dimensions with coldfusion

Is there a way to check the dimensions of an image or a swf file on your server. I am building a banner management application and I want it to add the height and width of a banner to the database when a banner gets uploaded throught the form using cffile. I want this to be an automated feature so the client does not have to add them in their self. Any advice as where to start on this would be great.
ASKER CERTIFIED SOLUTION
Avatar of mrichmon
mrichmon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of siva350
siva350

ASKER

will this work with a flash banner?
I don't know
Avatar of siva350

ASKER

mrichmon, thanks for your help, I found a cfc that I think will work for the flash but it looks like your answer will do the trick for the gifs and jpg so I will be back shortly to let you know if it all worked and post a link to the cfc if it does work
Avatar of siva350

ASKER

this code does not seem to work, can you tell me what I need to change?
Avatar of siva350

ASKER

nevermind, Im a moron and forgot to put the file path in the code. oops