Results 1 to 4 of 4

Thread: Resizing image proportionally

  1. #1

    Thread Starter
    Addicted Member BIOSTALL's Avatar
    Join Date
    Apr 2005
    Location
    Northampton, UK
    Posts
    180

    Resizing image proportionally

    Hey... i was wondering if anyone would mind helping me..

    I have a lot of images that are being called from my server using php but when they are displayed they are all either bigger or smaller than each other... What i need is a way of resizing the image so that the width is equal to 200pixels. The height of the image is not important but i need the image to be scaled down so that it does not look squashed/stretched. Can anyone please point me in the right direction??

    Thanks, BIOSTALL

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Resizing image proportionally

    You have three options.
    1) Set the width property of the image to 200 pixels. This will make the browser resize it. The result might not be pretty, because the browser usually hurries.
    2) Write complicated server scripts that transform the images. The server will rush just as much as the client, though, or else it will go down, so the images are no prettier.
    3) Generate correctly-sized versions of the images ONCE and just deliver them.

    The prettiness is only an issue if the images are resized strongly.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Re: Resizing image proportionally

    option 4 get a batch image resizer app

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: Resizing image proportionally

    That would be a technique to accomplish 3.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width