| Graphics. Adding images to a Web page. Includes BMP, GIF, JPG, JPEG, PNG formats, animation, watermarks and flash |
![]()
|
Page Contents - Graphics
|
|
|
Graphics IntroductionThe quality of your web pages can be greatly improved by the inclusion of graphic files within them. You do not require any additional programmes to do this. If you wish to create your own images or manipulate an image files you have, you will require a graphic editor program that saves work in the correct file formats, to do this. The downside of images is that they greatly increase the download time. You will learn about how to minimise this problem, by using optimised image files, image files where the file size has been decreased in some way or other. The things that effect the image file size can include, file format used, size of the image in width pixels x height pixels, number of colours used, the degree of file compression. There are sources of free graphic files such as
Ensure you read the Copyright Section below before using anybody elses graphic files. CopyrightThe following is not the legal position but basically common sense tips I have picked up. Although I am talking about graphic files the same copyright laws also apply to text. Somebody has put time and effort into producing a graphic files image and that person will own the copyrights to that image files. This right can be sold on to say a publishing company. It is very easy to download graphic files from a web site. All you have to do is right click on the image and select the option to save it. Right clicking can be disabled by Java Script on the web page, but this is easily defeated by using a browser with Java disabled. Using this downloaded graphic on your web page would be a breach of copyright, and you could be sued by the copyright owner. If you wish to use other peoples graphics, then you must receive permission to do so. There is a certain amount of latitude given to students on courses like T170 and T171, for use on course work. Presenting that work to the world can remove you from that protection. The course will give you information on this. Many of the free graphic sights will have a section stating the copyright policy. Read the small print to find out about this policy. Some of the common clauses are similar to the following. The graphic is probably free to use:
You will also find Web sites that offer graphics for a small, or not so small fee. Some of these Web sites will also produce custom graphics to order. Top .Placing a graphic onto a web page Suitable File Formats
The following formats are suitable
File FormatsBMPA BMP is a Bit Mapped image. GIFF (Graphic Interchange format)
Suitable for imagesThat have 256 colours or less and largish areas of the same colour. The best compression occurs when areas of the same colour are in horizontal bands. Keeps sharp edges and this format is good for line art, cartoons, blocks of the same colour. Attempt to use only web safe colours in giff images. OptimisationReduce the number of colours used. JPG JPEG (Joint Photographic Experts Group)
Suitable for images.JPEG is far superior to GIF for storing full-color or grayscale images full of fine detail such as photographs and images with continuous colour variations, e.g. gradient colouring, or intricate artwork. Not as suitable for line art OptimisationAltering the amount of compression. The better graphics programs display the original image alongside the optimised image. Always save the optimised image under a different file name, keeping the original file safe. You can't improve the quality of an optimised image back to that of the original. PNG (Portable Network Graphics)The format produced by Macromedias Fireworks This format may become asuccessor to the GIF file format, but browsers Netscape versions 4.04 and later and Internet Explorer version 4.01 or later are required.The format is platform independent. Top . Preparing for Your Web Page that includes graphicsFolder
Image code Examples
<IMG src="../graphics/layout/html-25x25.gif" width="25" height="25">
align attributeAlign is depreacted in HTML 4.0 in favor of style sheets.
left can be replaced with these other alignments: top, middle, bottom, left, right, absolute middle, absolute bottom, baseline T171, T170 and TT280 students should remember about the flat file structure if using graphics with the ETMA system.
More Information on Inserting ImagesAn additional tutorial for OU students and Netscape Composer users on insert images onto a web page. None Netscape Composer users will also find useful information.How to use imagesThere are 2 main uses of images.
The same image file can be used for either purpose
As an image
Background image
Code for the above tableFor the following code to work the graphic files must be in the same folder as the html file.
<TABLE width="90%" border="2" align="center">
<TR align="center" valign="top">
<TD background="cwall.jpg" width="33%" height="53">
<B><FONT color="#FFFFFF">1. </FONT><FONT color="#FFFFFF">Background Image<BR></FONT></B></TD>
<TD width="26%" height="53" bgcolor="#FFFFFF">
<B>2. Purely as an image</B><BR>
<IMG src="html03.gif" width="25" height="22"></P>
</TD>
<TD background="cwall.jpg" width="41%" height="53">
<B><FONT color="#FFFFFF">3. Text and an image<IMG src="html03.gif" width="25" height="22">
placed on a background image</FONT><BR></B>
</TD>
</TR>
<TR align="center" valign="top" background="html03.gif">
<TD colspan="3" height="46"><B><FONT size="+3" color="#FFFFFF">4. Background </FONT><FONT size="+3">Image</FONT></B>
make text difficult to read
</TD>
</TR>
</TABLE>
Top .
Graphic ProgramsThe graphics program, MSPaint, that comes with windows produces files in format BMP. Because of the large files that the BMP format produces MSPaint is unsuitable for producing graphics for the Web. Fortunately there are some very good free programs, shareware programs, and paid for programs available. The graphics program, MSPaint, that comes with windows produces files in the BMP format. As stated above BMP files produce very large files and are therefore not as suitable for producing graphics for the Web. You will there fore require a graphics program to either create or ammend graphics for the Web. Fortunately there are some very good free, shareware, and paid for programs available, that produce or convert to file formats that are suitable for the web.
PSP (Paint Shop Pro)One of my favorite graphic programs at a reasonable price is PSP (Paint Shop Pro)version 7. More details (Will open in a seperate window). Excelent
FREE Versions Download the older version 4 in a zip format, 3mb, from an OU tutors site. (Will open in a seperate window) Version 5 of Paint Shop Pro has appeared Free on Computer Mag CDs.
Adobe PhotoshopThis is one of the best graphic program. A discounted Student version is/was? available from the Adobe web site.
Adobe Photoshop ElementsA cut down and cheaper version of Adobe Photoshop, an excellent graphic program Top . FlashFlash is a newish graphic file format that brings movement to a web page,
and the latest in Web animation developments. Flash is achieved by a system
of layers, motion guides and tweens. Macromedia is the leader in flash
and its latest program is part of the Macromedia Student Studio MX.
Available on a students discount. Possibly the biggest cons against using Flash are: It requires an add in to be downloaded before it will work. This only has to be downloaded once. Flash files tend to be rather big, taking a longish time to download. Too long for the patience of many possible viewers to your Web site, especially if they do not have a fast connection to the Internet. This will change as and when Broadband connections become cheaper and more popular.
See Books on Flash SwishSwish is a cheaper and good alternative to Flash.
Watermarks
Watermarking a graphic is a method of placing your "signature" into a graphic that can be used in copyright disputes, a robust watermark, or can detect if changes have been made to the image, a fragile watermark. The signature is
UploadingWhen you upload your web pages to the hosts server, you must also upload all the graphic files that you have used. Make sure they are uploaded to the correct folder (directory) if you have used a folder system. OU students can use a folder system on there OU Web space, but MUST NOT use a folder system for ETMAs
Grahics don't show on my web siteThere are several common errors that web masters can make that can prevent your graphics showing.
Download Image SitesThe graphics on this page were produced by Xara Webstyle why not try this program with a free trial download.
|
|
|||||||||||||||||||||||||||||||||||||||||||
|
Create Free 3D Text for Your Site NowThe following is a sample of the type of free 3D text that you can quickly download.
You can change the font, colour, size and style.
The full program allows many more adjustments to the look of the resulting grahics including animation.
Download some handy tools
|
|
|
![]()
Leisure Time - book your holiday or flights with our UK sponsorsMore Tutorials by John McGuinn
Leeds my home town Relax in the sun.
Copyright © John McGuinn 2001-03 . |