|
-
Jul 7th, 2005, 04:36 AM
#1
Thread Starter
Addicted Member
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
-
Jul 7th, 2005, 08:36 AM
#2
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.
-
Jul 7th, 2005, 10:12 AM
#3
Re: Resizing image proportionally
option 4 get a batch image resizer app
-
Jul 7th, 2005, 11:12 AM
#4
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|