Benefits of using Protected Graphics:
- If most of your site will be based around a group of the same images (header, background image, side borders, etc.), you can essentially create a
'template' which can be used from page to page.
- Protected Graphics - regardless of how many pages they are used on - only have to download to the visitor's computer once per visit. (I mention that
because if you clear your cache, those images will be cleared and will be downloaded again as the site is visited). This means that the speed in which
the pages load will increase. In most cases, the background of the page will appear to stay the same while the content changes. The use of some page
- Protected Graphics are not affected by any type of compression or name changes as can be / is the case when adding items the "regular" way. If you
were to look at the source code for the same item loaded to different pages not using Protected Graphics, you'd probably see names for the image like
IMG001.jpg on one page, IMG004.jpg on another, and so forth.
- What you load is what you'll see, and the files will remain named as they were when you added them.
How Protected Graphics work:
- When you add an image to a page using the insert Protected Graphic method, that file is stored in a folder called _RefFiles. The code generated to display
the image tells it to look for it in that folder.
- When you insert the same image again (or copy and paste from a previous page), the code generated says "the image is called 'MyImage.jpg' and is
located in the _RefFiles folder. Because that image has already been downloaded onto the visitor's computer, the web browser instantly displays it again
from the computer's cache.
How to use Protected Graphics:
- The first step you should take would be to create a folder on your computer where all of your graphics will be stored for the site. This just makes finding
those images a lot easier than searching all over your drive. Create a folder within your site's overall folder, and call it something like Graphics. Even if
you already have a folder with a bunch of graphics in it somewhere else, do yourself a favor and copy those that will be used on the site into that folder.
- Now, starting with a blank page (usually the main or 'Home' page), insert each graphic that will be used throughout the site. Although you can add several
images at once, it may be easier to do one at a time.
- Select Insert then Protected Graphic From File (as shown below).