Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Size of photos

5:52 am on Jun 27, 2008 (gmt 0)

New User

5+ Year Member

joined:June 27, 2008
posts: 2
votes: 0

Hello, I am very new to making webpages. On my site, I have one page with four pictures. When I click on a picture on the page, and click Properties, it says that the picture is 150 KB for example. The page was taking a long time to download too (although our internet is currently slowed down; that might be why). So I saved the page to my desktop and looked at the properties of the page. It said something like 4.42 KB and 8 KB on disk. Also when I looked at the size of that file in my server's file manager, it also said it was around 4 KB. How is this possible? My question: when someone views my page, are they having to download hundreds of KB for those photos, or are they just downloading the 4.42 KB?

Thank you so much!


7:33 am on June 27, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 4, 2004
votes: 0

You were looking at the HTML document, the image files are separate than the HTML document. HTML is just text which requires very little disc space.

Create a new folder on your computer and copy an image to it, open up notepad and place the following text. Be sure to replace the filemane for the image with your own.


<title>My Test Page</title>

<img src="your_images_filename.jpg">


Save this to the same folder that you image is as test.html , make sure you don't save it with the default extension .txt If you examine this file through My Computer you'll see its quite small in file size. If you open it in your browser the image will display.

The bulk of the download will be the image file...

The best way to reduce the file size is to optimize the image. You can use just about any decent image application to optimize images like jpg's.

When you go to save it there will generally be a sliding scale that allows you to set the "quality" or amount of compression. Setting this higher or lower will create larger or smaller file sizes. Using lower settings for smaller file sizes also reduces the quality of the image. Some applications will even have a defualt "save for web" option that has defaults that generally work well for most images.

3:01 pm on June 27, 2008 (gmt 0)

New User

5+ Year Member

joined:June 27, 2008
votes: 0

Thank you so much for your answer. I appreciate your taking the time to write this out. I guess that I did not realize in the past that there was more to the download than just the size of the webpage itself. Thank you.