|
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
01) WHAT ARE IMAGES?Images are graphics or pictures. That was easy, wasn't it?Images on a Web page can give it that little bit of zing it needs to make it a really fantastic Web page. It is so true that a picture is worth a 1000 words! And, according to statistics, most people prefer seeing a picture than reading a description. I know that certainly holds true for me! How does a browser display an image on a Web page? Well, the browser actually reads the tag for the image name and then that tag tells the browser where the file of the image is specifically located. The browser simply opens that file and displays the image. Usually. Most of the common browsers today (Netscape, Internet Explorer) can handle images. Some can't. For example, Lynx is a text-display-only browser. If a browser can handle images without any problems, the images, or graphics/pictures, are called INLINE IMAGES. If a browser can't handle images, then the graphics would have to be viewed via some other source other than the browser in another window. These are called EXTERNAL IMAGES. Obviously, inline images are preferred.
02) IMAGE FORMATSThere are many different formats that are used when saving images, such as: GIF, JPG, TIFF, PCX, BMP, and so forth. Out of all the different formats, however, only three (3) of them can assuredly be used in a Web page without the browser going nuts. Which three? BMP, GIF and JPG. Please make sure that the image you use in your Web page has either the .gif or .jpg extension on the end. GIF's seem to be more popular than JPG's, but JPG's have advantages. Advantage one: If you have two IDENTICAL images, one in .jpg and one in .gif, the .jpg will be smaller in file size than the .gif. Advantage two: JPG's take less time to download (come up on your screen) than GIF's. Why? Because of advantage one above; they are smaller in file size! GIF's have an advantage over JPG's, however, in that they can be "transparent". In other words, you can save an image as a GIF and the background of the page show through. Notice the "TOP" links beneath each of these sections? They're in GIF format and they're transparent; you can see my textured background behind each one. The "Note" and other images on this page are not transparent. Each of them are JPGs. That leaves the BMP images unaddressed. These are usually not ideal for using as an image because they are usually extremely large files. It is best to convert .bmp files to either .jpg (preferred, unless you need a transparent image) or .gif. 03) WHERE DO IMAGES COME FROM?Images can come from a large variety of different sources. The easiest way to come up with an image, is to have a regular photograph scanned and saved in a .jpg or .gif format. Scanners are becoming very commonplace these days, even to the point of being combined with the printer. Another easy way to come up with an image is to use a digital camera. This is probably the most common method used today of acquiring images. A third option is with the retailer that develops your film. You should be able to have the option to put your images on CD, as well as prints. This is usually a nominal fee, and worth it, in my opinion, if I develop photographs of people/places that are of high-interest (I'm an amateur photographer, so many times I take pictures of things most people wouldn't even dream of taking, so I typically don't have these rolls of film printed to CD). Another option is clip art. Clip art is professional, quality artwork done by someone else that can be used in your own creations. Clip art can be purchased at any retail store selling software. Please adhere to the copyright that is set forth by each individual software package. Yet another option is to grab an image from another Web page. It's easy to save any image on a Web page onto a hard drive. How? If using Netscape, right click on the image and choose 'Save this Image as' from the menu. If using Internet Explorer, right click on the image and select 'Save Picture As' from the menu. Please be careful of copyrights here, though. It is unethical and/or even illegal to copy images without the Web site's owner's permission. I do not allow this option on any of my graphics (unless they sneak past me!). The next option is simply to take advantage of the many Web sites on the Internet that do nothing but store graphical images for people who need them. Many of these sites are free. Again, please make sure that you are upholding the site's copyright.
Another source in acquiring an image is to create one with some type of
software/paint program. This option does require the user to have some type
of talent and some type of software program that allows this. Common
software programs for this include Photoshop® and Paint Shop Pro®.
99.9% of the images that I create use a combination of these two software
programs.
Now, down to the nitty-gritty. The image tag is <IMG>.
IMG stands for 'image', SRC stands for 'source', "imagefilename.ext"
gives the exact location and name of the image file you want to display (where
".ext" is usually either .jpg or .gif).
<IMG border="0" SRC="images/htmltut.jpg" width="517" height="173"> If
I had this next line as the code, it would fail to load the image. Can
you see why? <IMG border="0" SRC="images/Htmltut.jpg"
width="517" height="173"> Because
the file name is htmltut.jpg and not Htmltut.jpg. The capitalization
in a file name is very important!
If that image is in the same directory we are working in, all we would have
to put would be this:
<IMG SRC="htmltut2.jpg">
Why? Because the "images/" indicates a directory
change, and since it is before the file name, it indicates that the file will be
found in the directory above/before the current location.
<img border="0" src="../../images/note.jpg" width="44" height="61">
<img border="5" src="../../images/note.jpg" width="77" height="33">
If an image is inserted into the regular text, the browser will display
the text and the image on the same line. The text will usually be displayed
at the bottom part of the image. This could be a problem if the image is tall
and/or if you are trying to "balance" your text with the picture
by wanting it centered.
The browser can be told in the <IMG> tag where the text is to be
displayed. The choices are either at the top of the image, in the middle, or at the
bottom. Here are the tags:
<IMG SRC="imagefilename.ext" ALIGN=TOP>
Simply use one of the above <IMG> tags, choosing the appropriate one,
dependent on where the text will be viewed beside the image (top, middle, or
bottom). Here are examples of the above options:
Notice how the text appears beside the three (3) images I have
for "Example:" above? It is all appearing at the bottom of the image
because it is not being told to go to the top or middle. Compare these
examples and notice the position of the text with the "Example:"
images:
What if there isn't any text shown along with the image? Insert a <P>
tag after it or a <BR> tag to skip a paragraph or a line, respectively.
Just like text can be clicked on to go to another link, so can an
image be clicked on to go to another link. Designating an image as a link
is not much different than using text as a link. In fact, the image at the top
of each of these chapters in this tutorial is clickable (at least, they should
be!). If you run your mouse over the image, then click it, it should
take you back to the home page for this tutorial.
How is this done? Still use the same <A>
tag (which, if you remember, is the anchor tag to send your browser to another
location), but insert an <IMG> tag between the <A> and </A>.
The above tag automatically surrounds an image with a border if it
is being used as a link. The image at the top of this page does NOT have a
border. If a border around the image isn't wanted, then add
"BORDER=0" to the tag. <A HREF tells where you want the
"click" to go and <IMG SRC is the image that you "click" to get there.
This section only applies if you're using free Web space with Quilting
Passion, through the online Quilting Passion Forum.
In order for an image to be available to use on Quilting Passion, it should
be on the Quilting Passion Web server, unless you have another place you can
store images online. To do this, attach your image (in either .jpg or .gif format)
to an E-mail message and send it to quilting@quiltingpassion.com. Please make sure that the
image is in either GIF or JPG format. Once the image is received, it will
be put on the Web server for Quilting Passion and you will be informed as to
it's location so that you can use it.
|