<< . .

. 38
( : 41)



. . >>

the URL in a new and exciting way.
The only target that™s universally useful is _blank, which opens the
URL in an entirely new browser window and leaves the original page
untouched. The other three ” _top, _self, and _parent, respectively ”
are useful only if you™re using an HTML technique called frames to design
your page (which is something that™s generally considered bad form these
days, so we just pretend that they don™t exist).
5. Repeat Steps 1 through 4 for all the cells you have created.

You may also want to save the work you have done so far, which we describe
how to do in the section “Saving and reloading your work,” a little later in this
chapter.



Optimizing cells
Unless you tell it to do otherwise, Paint Shop Pro saves all your cells as GIF
files, which can create grainy images and horribly lengthy download times.
A little compression can make all the difference; remember that the JPEG
used in Chapter 15 took four minutes to download before it was squeezed
down. Is your page so cool that you would watch a blank screen for five min-
utes before you saw it? (Studies have shown that people don™t wait for more
than 12 seconds.)

To optimize your images, follow these steps:

1. Select the Arrow tool (in the Tools area) and click a hot spot or cell.
2. Choose whether your cell should be a GIF or JPEG image.
Refer to Table 15-1 in Chapter 15 for a comparison of formats. (You can
use PNG, but not all browsers support it.)
3. If you want to optimize the image ” and you should ” click the
Optimize Cell button.
This step brings up the GIF Optimizer or the JPEG Optimizer, as dis-
cussed in Chapter 15; pay special attention to the Download Times tab.
If you want all your cells to be optimized the same way, click the Apply
Optimization to Whole Image check box.
4. Repeat Steps 1 through 3 for all cells you have created.



TEAM LinG - Live, Informative, Non-cost and Genuine !
324 Part V: The Part of Tens


Saving and reloading your work
You may want to go back and change your hot spots, cells, or links later, or
perhaps use similar settings on a slightly different image. For those reasons,
save your work as a file. (Note that this file isn™t the Web page file or an image
file; to create those, see the following section.)

Click the Save Settings button. The Save Slice Settings dialog box that
appears works just like any other file-saving dialog box. Enter a name and
choose a folder for your file, and then click Save.

If you want to use or edit your settings later, open the Image Slicer tool as
before and click the Load Settings button. Open your file in the Load Slice
Settings dialog box that appears. The hot spots or cells you defined earlier
are now set up for the current image.



Saving the result as a Web page
For all this slicing and dicing to be of any use, you need to transform it into a
Web file. The Paint Shop Pro Webtools feature produces the two kinds of files
you need for your Web page: one or more image files (in GIF, JPEG, or PNG
format) and a single HTML file. You create as many image files as you have cells.
The Web page (HTML) file that™s created incorporates those image files and
provides the links, hot spots, and other programming that makes it all work.

Before you produce the final files, you can test your Web page by viewing it in
your Web browser. In the Image Slicer, click the Preview button. Your Web
browser is launched and displays the result. You can test all the hot spots or
other features you have created.

To create your Web files, click the Save or Save As button. If you haven™t cre-
ated any Web files since you launched the Image Slicer, the Save As dialog
box appears. As with the Save As dialog box in any program, you enter a file-
name and choose a folder. The name and folder you choose is the name and
location of the HTML, or Web page file, you™re creating. (The Save As dialog
box doesn™t appear if your Web page file already has a name and folder.)

Paint Shop Pro creates a series of cell images in the same folder as the HTML
file; although each cell file™s name begins with the name of the original image
file, Paint Shop Pro appends additional characters to distinguish the cell.



Making rollovers
Rollovers are images (typically, buttons) that change appearance whenever
you position your mouse over them or whenever you do various other mouse
TEAM LinG - Live, Informative, Non-cost and Genuine !
325
Chapter 18: Ten Topics a Little Too Advanced for the Rest of This Book

or keyboard actions. For example, a button may get darker. Rollovers are
popular Web page features because they provide immediate feedback to the
user™s cursor motion.

The basic mouseover rollover, which we describe here, simply changes as the
mouse passes over it. It requires two images: the original image (a button, for
example) and the one that substitutes for the original when a mouse cursor
passes over it (a darkened version of the button, for example).

To create a rollover, follow these steps:

1. Prepare the pair of images for each rollover.
For each rollover, you need the image that first appears on the Web page
and the image that takes the first image™s place. If you like using sliced
images, first use the Image Slicer to slice a large image into separate cell
images and save your settings. Close the Image Slicer, load into Paint
Shop Pro all the cell images created by the slicer, and modify them in
some way; for example, you can make them darker. Save each one with
a modified filename so that the original cell images remain unchanged.
2. Open the original image in Paint Shop Pro, if it isn™t already open.
For example, open the large image you originally sliced in Step 1.
3. Launch the Image Slicer and load your earlier settings.
Load the settings you saved in Step 1 to restore the slicing.
4. With the Arrow tool, click in the Image Slicer the cell you want to pro-
gram with a rollover.
5. Click the Rollover Creator button.
The Rollover Creator dialog box appears.
6. Click the Mouse Over check box.
7. Click the file folder icon on the same line as the Mouse Over check box.
The Select Rollover dialog box appears.
8. Choose the image file that you want to appear when the mouse passes
over and click Open.
For example, this file is the darkened version of the original file.
9. Click OK in the Select Rollover dialog box.
10. Repeat Steps 4 through 9 for each cell or hot spot.

Proceed to save your settings and create your Web files as we describe in ear-
lier sections in this chapter.




TEAM LinG - Live, Informative, Non-cost and Genuine !
326 Part V: The Part of Tens


Advanced Undoing and Redoing
Have you made a mistake? Paint Shop Pro has a classic fix: Choose Edit➪
Undo. Or, press Ctrl+Z or click the Undo button. Each time, you back up a
step and undo the preceding action. If you accidentally undo too far, you can
redo the step with Edit➪Redo. (Or, because Paint Shop Pro never gives you
just one way to do something when several will do, you can also press
Ctrl+Alt+Z or click the Redo button on the toolbar.)

What if you make lots of mistakes? Or, what if you realize that you made one
mistake a while back, but have done several things correctly since then? If
you undo all the way back to the point where you made your mistakes, you
also undo the valid changes you have made since your mistake.

Fortunately, Paint Shop Pro 9 adds a command history to allow you to see
more precisely what commands you™re undoing and redoing. Choose View➪
Palettes➪History (or press F3) and the History palette appears. It provides
enough command of history to finally understand the Peloponnesian War.

Okay, so nobody really understands (or even correctly spells) the
Peloponnesian War, but you can undo and redo your Paint Shop Pro com-
mands with more insight now. Most (but not all) commands are undoable.
Only undoable commands are normally shown on the History palette. To
see even the ones you can™t undo, click the Show Non-Undoable Commands
button, second from last at the top of the History palette.

Previous commands are marked with an eyeball to indicate that their effect is
currently visible. Click any eyeball to undo a step; it gets crossed out. Click
that same eyeball to redo that step. In this way, you can undo a single mis-
take without annihilating everything you have added since your mistake.

To prepare to undo several steps, Ctrl+click on multiple steps you want to
undo. Click the Undo Selected button at the top of the History palette and
your highlighted steps are undone.

To undo everything back to a specific step, click on that step. Then click the
Undo to Here button at the top of the palette.

Undone steps are now marked with a crossed-out eyeball to indicate that
their effect is no longer visible. The History palette Redo buttons (Redo
Selected and Redo to Here) are the complements to the Undo buttons. Select
the step or steps you want redone and click the Redo Selected button. Or,
click one of the X™d-out steps and click Redo to Here. If you™re permanently
done with undone commands, you “clear” them from History. Click the Clear
Selectively Undone Commands button, third from the right at the top of the
History palette.



TEAM LinG - Live, Informative, Non-cost and Genuine !
327
Chapter 18: Ten Topics a Little Too Advanced for the Rest of This Book


Using Scripts to Automate
Repetitive Tasks
William works as a webmaster for an online shop. Three times a year, new
products get released and he has to scan in and upload 350 pictures. Of
course, the scanned images all have to be the same size, and they all have to
have their colors adjusted so that they™re clear and vibrant images, and they
have to have a black border around their edges.

Doing that by hand 350 times would drive William stark-raving bonkers.
Fortunately, Paint Shop Pro 8 debuted a fantastic new scripting feature,
which allowed William to save that repetitive series of commands as a single
script. Now, whenever William scans in an image, he clicks one button ” and
the script adjusts the image™s colors, resizes it, and adds a black border in
one go.

The Paint Shop Pro scripting features record a series of commands and then
replay those commands as you entered them, which saves you valuable time.
If you have ever used macros in Word or Excel, you should be familiar with
this concept.



Recording a script
Here™s how you record an item:

1. If you don™t see the Script toolbar, as shown in Figure 18-15, choose
View➪Toolbars➪Script.
2. Click the Start Script Recording button.


Cancel Script Recording

Start Script Recording

Script selection menu
Figure 18-15:
The Script
toolbar.
Run Script Edit Script
Pause Script Recording

Save Script Recording




TEAM LinG - Live, Informative, Non-cost and Genuine !
328 Part V: The Part of Tens

3. Perform the sequence of actions you want recorded, just as you would
normally do in Paint Shop Pro.
Keep in mind that the settings for the tools you use are saved within the
script; for example, if you paint a circle with a 50 percent opacity and 25-
pixel brush, that script is always drawn with a 50 percent opacity and
25-pixel brush, regardless of what the Brush tool may be set to.
4. If you need to pause recording in the middle to do something that you
don™t want replayed later, click the Pause Script Recording button.
Click it again to continue the recording where you left off.
5. When you™re done, click the Save Script Recording button and enter a
name, and then click OK. Or, if you have done something wrong and
you don™t want to save it, click the Cancel Script Recording button.

You have three options when you™re saving:

Click the Save Materials check box. This option ensures that the script
draws with the material (the color, gradient, or pattern) that was used
when you recorded the script, thus ensuring that a red line is always a
red line; unchecking this option causes this script to draw with what-
ever materials are selected when you run it.
Click the Save Dialog Positions check box. Choosing this option is a
strange business. Normally, Paint Shop Pro doesn™t pay attention to
where you click ” it pays attention to what you did. Put another way, if
you record an application of the Topography Artistic effect (as shown in
Chapter 13), the script isn™t paying attention to where you moved the
mouse or when you clicked OK ” it™s paying attention to the settings
that were used when the topographical effect was applied.
This capability is A Good Thing. For one thing, it allows Paint Shop Pro
to zip through the scripts; it doesn™t have to wait two seconds to move
the mouse to the OK button, like you did.
If, however, you had a script that needed to place a click at some posi-
tion in a certain dialog box, you could check this box and ensure those
dialog boxes are in the same places. Realistically, though, you can proba-
bly ignore this part.
Click the Remove Undone Commands check box. We hope that you did
everything perfectly when you recorded your script. If you made a mis-
take, though, all is not lost! You can undo during a script recording. If the
Remove Undone Commands option is checked, those commands aren™t
carried out in the final script. (Why you would want to uncheck it is a
complete mystery, but, hey ” that™s a question that only Jasc can
answer.)
You can also, if you™re so inclined, select the Description box and enter
the author, copyright, and description of your script. This is handy if
you expect to pass it on.

TEAM LinG - Live, Informative, Non-cost and Genuine !
329
Chapter 18: Ten Topics a Little Too Advanced for the Rest of This Book

Scripts are saved by default in the My Documents/My PSP Files/
Restricted-Scripts folder. You can send them to other users, who
can put them in their folders and run them as though they had been
recorded on their own PCs.



Running a script
Running Paint Shop Pro scripts is much simpler than recording them. Follow
these steps:

1. Click the arrow on the drop-down list on the Script toolbar, as shown
in Figure 18-16.
By default, you™re shown the scripts stored in the Scripts-Restricted cat-
egory, but you can click other script folders, like Artistic and Photo, to
see what other exciting scripts Paint Shop Pro has given you for free.
Note that some scripts are already there. Paint Shop Pro comes bundled
with several scripts to automate common tasks, like creating thumb-
nails, and also gives you some artistic transformation scripts that can
turn a photograph into, for example, a watercolor painting. Feel free to
experiment.
2. Click the Run Selected Script button.
Certain advanced scripts may have dialog boxes that ask for user input,
but most just zip through and go about their business in no time.




Figure 18-16:
Running
a script
couldn™t
be easier;
choose a
script and
click it!




TEAM LinG - Live, Informative, Non-cost and Genuine !
330 Part V: The Part of Tens




TEAM LinG - Live, Informative, Non-cost and Genuine !
Index
removing items, 137“142, 297“298
• Numerics • spot-changing colors, 145“146
Animation Shop, 22, 28
1-bit color (black-and-white), 21, 86. See
anti-aliasing, 43, 54, 223, 237
also color depth
Art Eraser tool, 198
3D effects, 242, 244“245
Art Media
4-bit color (16 colors), 21, 182“183. See
canvas or layer for, 193“195, 206
also color depth
overview, 193, 242
8-bit color (256 colors), 21, 85, 182“183,
using, 195“200
243. See also color depth
artifacts in JPEG images, 23, 113
24-bit color (16 million colors), 21, 32, 85.
Artistic effects, 129, 242, 245“249
See also color depth
Auto Actions messages, 27“28, 287
32-bit color setting (scanners), 85
Automatic Contrast Enhancement effect,
125“126
•A• Automatic Saturation Enhancement effect,
126“127, 301
active layer, 204, 207, 242
Average blur effect, 143
active window, 15
Avery templates, 267
Adjust menu
Add/Remove Noise submenu, 90, 102,
•B•
111“112, 113
Automatic Contrast Enhancement
background color, 175, 224
command, 125
Background Eraser tool, 155“157
Automatic Saturation Enhancement
background layer, 150, 201
command, 126, 301
Backlighting Filter, 120“121, 296
Brightness and Contrast submenu, 129
batch processing for files, 25“27
Color Balance submenu, 108, 121,
bevel effects, 245
127, 129
bevel join, 237
Hue and Saturation submenu, 128
Bezier curves, 311“315
Photo Fix submenu, 104, 119
bitmap (raster) images, 24, 202, 222, 225
Sharpness submenu, 88, 110
black and white, 21, 86, 129“130, 217. See
Softness submenu, 142
also grayscale images
adjustment dialog boxes
blending, 169, 213“215
for effects, 257“258
Blur effect, 133, 143
overview, 116“119
Blur More effect, 133, 144
saving settings as presets, 303“305
blurry photos, 109“111, 137
adjustment layers, 119, 206, 215“218, 243
BMP files, 21. See also file types
Airbrush tool, 152“154, 185, 186
borders, adding to images, 35“36
album pages, printing, 266“270
brightness
aligning objects, 315“316

<< . .

. 38
( : 41)



. . >>