Forum Moderators: mack

Message Too Old, No Replies

Dynamic Width Homepage- image won't scale

Picture on homepage won't change size

         

boomtown123

2:05 pm on Apr 27, 2006 (gmt 0)

10+ Year Member



I'm currently having a website built for me using PHP. I don't know enough to do it myself yet, I'm embarrased to say.

Here's the issue, I have a "Dynamic width" hompage where the columns and text stretch to fit the size of the IE window. The problem is that the Picture on the webpage stays the same size. My web developers have told me that the "the image cannot scale."

Is this true? There's no way to make an image on a webpage stretch, like the text, to fit the screen?

Thanks for your help.

Beagle

9:38 pm on Apr 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What kind of image is it (.gif, .jpg, .png, etc.)?

tedster

2:30 am on Apr 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is essentially true.

Although you can give an image dimensions that scale by using scripting or sometimes percentages, that is playing with fire for the look and feel of the page. Either 1) the image has too much data (too big a file size) at smaller resolutions and therefore it loads slower than needed, or 2) it gets pixelated (gets the jaggies/freckles/fuzzies) at larger resolutions. And at fractional multiples of the original size, the image looks most peculiar.

You also can use script in the page to call a different image at larger window sizes, but this is not standard practice and is usually much more trouble than it's worth, requiring 2-3-4 versions of each image, or more.

Sounds like your designers are giving you solid input. Your much better off to use 1 image and plan the page around one size.

boomtown123

3:35 am on Apr 28, 2006 (gmt 0)

10+ Year Member



Thanks for the input. My developers have done a good job so far. I just wanted to get a second opinion.

BTW, the image was a .jpg image.

Beagle

5:11 pm on Apr 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



BTW, the image was a .jpg image.

From what tedster said, this wouldn't make much difference - but .jpgs are generally more difficult to resize than most other types if you want to keep the quality high.

Bddmed

2:46 pm on Apr 30, 2006 (gmt 0)

10+ Year Member



Actually Microsoft is doing it.

Just go to the microsoft homepage and look at the ad.

Then make your browser window a lot smaller. Hit refresh, and you'll see you get a smaller picture served.