Skip to main content
Inspiring
August 28, 2006
Question

Image file Specification 4guysfromrolla.com script

  • August 28, 2006
  • 2 replies
  • 332 views
HI all,
I have searched the web and finally found a script which would find the
Image specification on the fly.
Here is the Url to the script:
http://www.4guysfromrolla.com/webtech/code/imgsz.asp.html
Ok, i must accept that i am being dumb and canno figure out how to use it.

Here is the case.
I want this script to give me the image dimension (height and width) of a
specific file.
My image folder is variable i.e. X user has a directory named X, so the file
path varies. This isn't a problem at all.
Now if i set the variable "flnm" in the script to:
images/<%= Session("user")%>/test.jpg, ist it correct?

Now using the file as include, how can i retrieve the height and width and
set it to Session?

Any help would be highly appreciated.


This topic has been closed for replies.

2 replies

Inspiring
August 30, 2006
ok that was a type error. Any idea how to get the height an d width?


"Paul Whitham AdobeCommunityExpert" <design@valleybiz.net> schrieb im
Newsbeitrag news:ed2hau$pos$1@forums.macromedia.com...
> As you are alreay inside of a ASP script you do not need to use the extra
> <% so the script should read somethind like
>
> flnm = "/" & Session("user") & "/test.jpg"
>
> --
> Paul Whitham
> Certified Dreamweaver MX2004 Professional
> Adobe Community Expert - Dreamweaver
>
> Valleybiz Internet Design
> www.valleybiz.net
>
> "khna" <fkhan@lycos.de> wrote in message
> news:ecve26$3b6$1@forums.macromedia.com...
>> HI all,
>> I have searched the web and finally found a script which would find the
>> Image specification on the fly.
>> Here is the Url to the script:
>> http://www.4guysfromrolla.com/webtech/code/imgsz.asp.html
>> Ok, i must accept that i am being dumb and canno figure out how to use
>> it.
>>
>> Here is the case.
>> I want this script to give me the image dimension (height and width) of a
>> specific file.
>> My image folder is variable i.e. X user has a directory named X, so the
>> file path varies. This isn't a problem at all.
>> Now if i set the variable "flnm" in the script to:
>> images/<%= Session("user")%>/test.jpg, ist it correct?
>>
>> Now using the file as include, how can i retrieve the height and width
>> and set it to Session?
>>
>> Any help would be highly appreciated.
>>
>
>


Inspiring
August 29, 2006
As you are alreay inside of a ASP script you do not need to use the extra <%
so the script should read somethind like

flnm = "/" & Session("user") & "/test.jpg"

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"khna" <fkhan@lycos.de> wrote in message
news:ecve26$3b6$1@forums.macromedia.com...
> HI all,
> I have searched the web and finally found a script which would find the
> Image specification on the fly.
> Here is the Url to the script:
> http://www.4guysfromrolla.com/webtech/code/imgsz.asp.html
> Ok, i must accept that i am being dumb and canno figure out how to use it.
>
> Here is the case.
> I want this script to give me the image dimension (height and width) of a
> specific file.
> My image folder is variable i.e. X user has a directory named X, so the
> file path varies. This isn't a problem at all.
> Now if i set the variable "flnm" in the script to:
> images/<%= Session("user")%>/test.jpg, ist it correct?
>
> Now using the file as include, how can i retrieve the height and width and
> set it to Session?
>
> Any help would be highly appreciated.
>