Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Image file Specification 4guysfromrolla.com script

LEGEND ,
Aug 28, 2006 Aug 28, 2006
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.


TOPICS
Server side applications
316
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 29, 2006 Aug 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.
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 29, 2006 Aug 29, 2006
LATEST
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.
>>
>
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines