When you use a scanner or digital camera to load images on your computer, your graphic images might be 72, 150, or 300dpi resolution or even higher. Your monitor can only put out about 72dpi, so anything greater than that is wasted on your viewers. It also adds more bulk, which is really time, to your website. High resolution graphics are great for printing or manipulating on your computer, but they add nothing to your web page but size.
One of the things you need to decide is, how big of a picture do I want my viewers to see? Size and bulk also go hand in hand. All graphic images can be measured in pixels. Pixels are the individual dots of color that make up your total screen image.
I have my 17" monitor set up to view at a screen resolution of 800 x 600 (pixels). So it is easy for me to imagine how big a 400 x 300 pixel image would look on my screen. 800 x 600 is a good resolution to design pages at because it is one of the most common screen resolutions used.
The images on the Fun Page are just right for good viewing at 800 x 600. They are just about snapshot size, 252 x 189 pixels. This was a conscious decision on my part to give you six images to see without a heavy time burden.
I could have done the thumbnail thing and showed each picture one at a time, but at a larger size with no real problems. It is a little more difficult for your viewers though to click an image, then go back, click another, etc. Of course if I do that my total website picture count goes down because I only have so much free space on the Internet Host's computer. There is always a compromise between how big and how many.
Here is a table to show you the relationship between picture size, resolution, and file size. This chronicles one picture being reduced for the Fun Page.
file: funpage_01.jpg
| Viewable Size/Pixels | DPI | File Size | Print Size |
| 1280 x 960 |
144 |
697 KB |
8.9" x 6.7" |
| 1280 x 960 |
72 |
697 KB |
17.9" x 13.3" |
| 640 x 480 |
72 |
262 KB |
8.9" x 6.7" |
| 640 x 480 |
72 |
*56 KB |
8.9" x 6.7" |
| 252 x 189 |
72 |
51 KB |
3.5" x 2.6" |
| 252 x 189 |
72 |
*14 KB |
3.5" x 2.6" |
| * These images were compressed to about 50% on the jpeg compression/quality scale, significant difference. |
By the way, all the pictures (7 counting the background) on the Fun Page originally totaled over 5.5MB file size. That would take about 50 to 60 minutes to load on a typical phone line Internet connection. The finished files totaled only 152KB or approximately 1/8MB. 1000KB=1MB or so depends on who's counting but that's another story. The whole page should only take approximately 1 minute now. I hope that helps show you the relationship between time and size. It is your decision, more pictures or bigger pictures.
Image Source Use this tag to insert graphics into your web page. Type the filename.ext, or the path to your picture if it is not in the same directory as the web page, between the quotation marks.
Code: exact case duplication is important when stating the filename.ext or directory names.
<IMG SRC="pictures/sobohome.jpg">
Result:
There are quite a few options for placing your image on your page or how it relates to the text on you page.
ALIGN=RIGHT Aligns your image on the right side of the page and your text will word wrap around the image.
Code: Notice the ALIGN option is placed between IMG and SRC.
<IMG ALIGN=RIGHT SRC="pictures/sobohome.jpg">This shows how the text interacts with the image on your page. Understand, the image is actually square. That is why it doesn't wrap to the visible circle shape. With this option the text will wrap around the left side of the image. It will space each line as if the image wasn't there. If you use the TOP, MIDDLE, or BOTTOM options the text will align as told, but the next line won't start until the after the graphic, often leaving a big gap between lines.
Result:
This shows how the text interacts with the image on your page. Understand, the image is actually square. That is why it doesn't wrap to the visible circle shape. With this option the text will wrap around the left side of the image. It will space each line as if the image wasn't there. If you use the TOP, MIDDLE, or BOTTOM options the text will align as told, but the next line won't start until the after the graphic, often leaving a big gap between lines.
ALIGN=LEFT Aligns your image on the left side of the page and your text will word wrap around the image.
Code:
<IMG ALIGN=LEFT SRC="pictures/sobohome.jpg">This shows how the text interacts with the image on your page. Understand, the image is actually square. That is why it doesn't wrap to the visible circle shape. With this option the text will wrap around the left side of the image. It will space each line as if the image wasn't there. If you use the TOP, MIDDLE, or BOTTOM options the text will align as told, but the next line won't start until the after the graphic, often leaving a big gap between lines.
Result:
This shows how the text interacts with the image on your page. Understand, the image is actually square. That is why it doesn't wrap to the visible circle shape. With this option the text will wrap around the left side of the image. It will space each line as if the image wasn't there. If you use the TOP, MIDDLE, or BOTTOM options the text will align as told, but the next line won't start until the after the graphic, often leaving a big gap between lines. If we keep writing text you will see how it will eventually find the edge of the document again. See what I mean. Yeah I know this part of the text was not in the code text above. It was a last minute add to show the word wrapping.
ALIGN=TOP, MIDDLE, or BOTTOM These option align the adjacent text as told, but the next line will be below the image. This might work well for a short caption.
Code:
<IMG ALIGN=TOP SRC="pictures/tayhome.jpg">As the text wraps around for the next line you will see what I mean when I say the next line will be below the image. Doesn't look real pretty for paragraph text, does it.
Result: The top of the first line of text aligns with the top of the image.
As the text wraps around for the next line you will see what I mean when I say the next line will be below the image. Doesn't look real pretty for paragraph text, does it.
Code:
<IMG ALIGN=MIDDLE SRC="pictures/tayhome.jpg">As the text wraps around for the next line you will see what I mean when I say the next line will be below the image. Doesn't look real pretty for paragraph text, does it.
Result: The bottom of the first text line aligns with the center line of the image.
As the text wraps around for the next line you will see what I mean when I say the next line will be below the image. Doesn't look real pretty for paragraph text, does it.
Code:
<IMG ALIGN=BOTTOM SRC="pictures/tayhome.jpg">As the text wraps around for the next line you will see what I mean when I say the next line will be below the image. Doesn't look real pretty for paragraph text, does it. It's not so bad with the bottom alignment, but you have a lot of dead space above the text.
Result: The bottom of the first text line aligns with the bottom line of the image.
As the text wraps around for the next line you will see what I mean when I say the next line will be below the image. Doesn't look real pretty for paragraph text, does it. It's not so bad with the bottom alignment, but you have a lot of dead space above the text.
Here are some other examples of image code options.
<IMG BORDER=10 SRC="pictures/tayhome.jpg"> The BORDER=0 option is useful if you do not want to see a hperlink colored border around an image being used as a link. It can also be used to place a visible frame around your image, like the example code. Example:
<IMG HSPACE=40 VSPACE=40 ALIGN=MIDDLE SRC="pictures/tayhome.jpg"> Horizontal Space, Vertical Space: The HSPACE format places a buffer, as specified in pixels, on the right and left side of the image. The VSPACE format does the same for above and below the image. This is useful to keep your text from crowding your images or vise versa. Notice how the example is spaced from the wall and below the previous text. Example:
Notice the VSPACE?
Notice the HSPACE?
<IMG WIDTH=35% HEIGHT=200 SRC="pictures/tayhome.jpg"> HEIGHT and WIDTH can each be specified in % (percent) of page or number of pixels. I prefer to size my images before placing them in my document. In this example I made it 35% of the width available, not counting the frame on the left of the screen or the indent from the list format I am using. The height was adjusted to 200 pixels. Be carful not too stretch your images too much. Example:
<CENTER><IMG SRC="pictures/sobohome.jpg"></CENTER> Use the CENTER tags to place your image in the center of the available horizontal space. I don't think you can word wrap around a free standing, centered image.