Re: What is the best way to resize an image?
- From: "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 19 Apr 2005 11:26:34 -0400
Sure Rudy:
<a href="/images/someimage.jpg"><img src="/images/someimage.jpg"
style="width:200;height:200"></a>
In the above example, it doesn't matter what size the actual image file is.
The browser will resize it to the specified height and width. NOTE: If you
only set height OR only set width, the other dimension will resize
proportionately. The hyperlink is to the image itself, not a web page. If
the link is clicked, the image will be displayed by itself, un-resized.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
"Rudy" <Rudy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3530F794-5CF7-4B63-A4D9-9F8C6E980E88@xxxxxxxxxxxxxxxx
> Hi Kevin!
>
> Would you have an example on how I would do that?
>
> "Kevin Spencer" wrote:
>
>> It all depends. If you look at Steve's answer, you will see one way of
>> doing
>> it. However, if, for example, you want to have a page of thumbnails and
>> links on each thumbnail to the full-sized image, you may not want to make
>> a
>> smaller image, but display the image smaller in the browser, using
>> attributes or style. This, in effect, pre-loads the images, so that when
>> the
>> thumbnail is clicked on it takes no time for the browser to display the
>> already-cached image.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> ..Net Developer
>> What You Seek Is What You Get.
>>
>> "Rudy" <Rudy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:5E8E9F7F-5147-4F3C-9F40-26F9EC1696E6@xxxxxxxxxxxxxxxx
>> > Hello all!
>> >
>> > I been trying to get a handle with Images. I have learned alot from the
>> > fine
>> > people here. So, I also learned that thumbnail images look terrible
>> > taken
>> > from a digital cam. I know why they look bad. So what is the best way
>> > to
>> > resize an image. I'm not too concerned about size, but I guess I would
>> > like
>> > to compress it on the upload.
>> >
>> > Any thoughts?
>> >
>> > Thanks!
>> >
>> > Rudy
>>
>>
>>
.
- Follow-Ups:
- Re: What is the best way to resize an image?
- From: Rudy
- Re: What is the best way to resize an image?
- From: Steve C. Orr [MVP, MCSD]
- Re: What is the best way to resize an image?
- From: Bruce Barker
- Re: What is the best way to resize an image?
- References:
- What is the best way to resize an image?
- From: Rudy
- Re: What is the best way to resize an image?
- From: Kevin Spencer
- Re: What is the best way to resize an image?
- From: Rudy
- What is the best way to resize an image?
- Prev by Date: Re: timer control in asp.net
- Next by Date: Creating script files on demand during runtime..
- Previous by thread: Re: What is the best way to resize an image?
- Next by thread: Re: What is the best way to resize an image?
- Index(es):
Relevant Pages
|