PDA

View Full Version : Finding the width and height of an image/flash file.


Carl
10-26-2002, 07:31 PM
How do I find the width and height of an image or flash file? I'm pulling the path from a database, and don't want to add other fields with the width and height. How can I detect the width and height?

Thanks

Carl
10-27-2002, 10:25 PM
Anyone know?

whammy
10-27-2002, 11:21 PM
Not offhand, I'd probably add a width and height field to the database.

glenngv
10-28-2002, 05:23 AM
you can determine the image size using javascript on the client-side, but if you want it server-side, you can download a free component from http://www.serverobjects.com called ImageSize (http://www.serverobjects.com/comp/imgsize.zip)