Re: What is the best way to resize an image?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
>>
>>
>>


.



Relevant Pages

  • Re: Freightliner class 90 receives new livery
    ... pixel 8.2Mb image as a thumbnail by getting your browser to resize it ...
    (uk.railway)
  • SP2 and Javascript
    ... Web sites from running scripts that resize or reposition your browser ... As my start page is a script that resizes and repositions my browser window, ...
    (microsoft.public.windowsxp.general)
  • Re: SP2 and Javascript
    ... >pages will display fully in 800x600, so I force my browser to that size, as ... >As my start page is a script that resizes and repositions my browser window, ... >it seems I was correct in thinking that IE would block my attempts to resize ... >that tells me it won't run my script commands. ...
    (microsoft.public.windowsxp.general)
  • Re: Access 2010 Web Form - tab order
    ... You can use the goto control command in the after update event to modify what control will be next for those cases where you want to change this. ... That system means if you resize a column, then the Headings, the footings, and detail sections all automatically resize and move for you all at the same time. ... you never get to use + view them in a browser. ... The problem here is if you execute an open form command inside of a browser, it would launch a whole new browser session and separate form. ...
    (comp.databases.ms-access)
  • Re: Brain dead... write image to file
    ... function resize(){ ... use the SECOND parameter to ... $origStream = imagecreatefromstring; ... // calculate thumbnail size, retaining aspect ratio ...
    (php.general)