
Rene S
|
| Posted: 05/24/2005, 11:01 AM |
|
Hi,
Is there a way to restrict the widht and/or height of an image when I use ASP/VBScript upload control. I would like to check that an image does not exceed 320 by 560 pixels before it gets uploaded. Any help is very much appreciated.
TIA,
Rene
A very happy CCS user
|
|
|
 |
ryan
Posts: 41
|
| Posted: 05/24/2005, 6:34 PM |
|
just accept the image as it is then on your display then input the image width and height
<img src="{linkimage}" width="320" border=0 height="560">
_________________
(\__/)
(='.'=)
(")_(") |
 |
 |
Rene S
|
| Posted: 05/25/2005, 12:21 AM |
|
Hi Ryan,
Thanks for your response. The problem with the solution is that it then always makes the image that size, even if its smaller. Can you provide a solution for a "maximum size"? statement: if smaller ok, if bigger use your solution.
Thanks alot,
Rene
|
|
|
 |
Tuong Do
|
| Posted: 05/25/2005, 10:43 PM |
|
Hi Rene,
You might have to use the component from http://www.aspjpeg.com/
to resize the image on the flight
<ReneS@forum.codecharge (Rene S)> wrote in message
news:642936bfef41f6@news.codecharge.com...
> Hi,
>
> Is there a way to restrict the widht and/or height of an image when I use
> ASP/VBScript upload control. I would like to check that an image does not
> exceed 320 by 560 pixels before it gets uploaded. Any help is very much
> appreciated.
>
> TIA,
>
> Rene
> A very happy CCS user
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|

|
|
|
|