Forum Moderators: open

Message Too Old, No Replies

Classic ASP image parameters

         

MavisCruet

3:14 pm on Apr 4, 2008 (gmt 0)

10+ Year Member



Hi guys,

In PHP there is a handy little function in PHP:
list($width, $height, $type, $attr) = getimagesize("image_name.jpg");
This will get the image width, height and file type.

Is there any way of getting this information using ASP?

I have no access to the software on the server so cannot install any ancillery software.
I am now desperate to find a solution so any help or advice would be greatly appreciated!

mattur

3:27 pm on Apr 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you don't have an image component installed (eg aspJpeg, check with your host) you will need some ASP subroutines to do this - google "gfxSpex" for the code.

MavisCruet

4:00 pm on Apr 4, 2008 (gmt 0)

10+ Year Member



Thanks for that!

Will that work in classic ASP or .NET only?

mattur

4:28 pm on Apr 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It will work in classic ASP. .Net as in-built image processing methods.