Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - ASP picture width
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ASP picture width

 Post Reply Post Reply Page  12>
Author
venki View Drop Down
Groupie
Groupie


Joined: 20 April 2003
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote venki Quote  Post ReplyReply Direct Link To This Post Topic: ASP picture width
    Posted: 01 December 2003 at 6:23am
Can ASP read picture width and heigh? I need it for upload script, if some one uploaded big picture (not in KB but in size!) to write error to user. I just need a script that will read picture width and heigh.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2003 at 8:08am
You would not be able to determine the picture size until you uploaded the picture using asp as asp is serverside. Now most upload components support a maxwidth property and some even resize it automatically for you. Check the component documentation.
Back to Top
venki View Drop Down
Groupie
Groupie


Joined: 20 April 2003
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote venki Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2003 at 1:43pm
for ex. if I hawe picture uploaded on server can I read its width?
Back to Top
pmormr View Drop Down
Senior Member
Senior Member


Joined: 06 January 2003
Location: United States
Status: Offline
Points: 1479
Post Options Post Options   Thanks (0) Thanks(0)   Quote pmormr Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2003 at 4:58pm

you should be able too read the properties off the picture with some type of component

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 01 December 2003 at 5:29pm
like I said, what component for uploading are you using? That may make it much easier.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2003 at 5:16am

What if I don't use any component, like Pure ASPUpload? A file is then saved to a dir.

One can easily get the file size, last mod date and all that, but not the pixel dimension.

How can I get hold of the picture dimenssions?

Thx.

Back to Top
cybermaster View Drop Down
Groupie
Groupie


Joined: 31 August 2002
Location: Croatia
Status: Offline
Points: 91
Post Options Post Options   Thanks (0) Thanks(0)   Quote cybermaster Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2003 at 12:30pm

..you shoud do that with javascript...

Toxiclab.org-webmasters community
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 02 December 2003 at 1:02pm

but what if you need it in a variable etc? You either need to use a component or use asp.net and GDI+

Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.