Computer Graphics Survey
Editing Scanned Images
Using Photoshop 4.0.1 on MacOS Computers
|
ACG Home |
Instructor Home |
Class Home |
list of tutorials |
Before beginning the project
Read the
information that pertains specifically to the way the ACG Lab operates.
These directions may not apply if you work on the project elsewhere.
- Photoshop is the most widely used tool for editing pictures such as the ones you scanned in the previous tutorial. This kind of computer graphics is known as raster, or bitmapped, or paint images.
- The capabilities of Photoshop are extremely numerous, and this beginner tutorial won't attempt to cover them all. After learning some basic techniques, you can choose to work with your scanned image using any combination of these features:
- Regardless of how you choose to work on your scan, once the picture is complete you must convert it to a web-compatible format, then modify the HTML for your web page to call up the image.
return to top
- Resetting the program to factory defaults: before starting up Photoshop, it is recommended that you trash the file 'Adobe Photoshop 4.0 Prefs', found in the 'Preferences' folder inside the System Folder.
- Opening scanned files: double-clicking the icon of your scanned image file will generally not work, since the computer will look for the scanner program to open the picture. Instead, drag the picture file icon and drop it on Photoshop's icon.
- Recovering from mistakes: like many other programs, Edit-->Undo will recover from the last editing operation only. You can retrace your steps further back using File-->Revert (provided you had previously saved a satisfactory version of your work in progress).
- Selecting parts of the image: before most commands can be used, you must have selected the part(s) of the image that you want to work on.
- To select an irregular shape, trace its outline using the lasso tool.
- For irregular shapes with straight edges, click and hold on the lasso icon in the toolbox to reveal the polygon selection tool.
- For a box-shaped selection, use the marquee tool.
- To select an oval or circular shape, click and hold on the marquee icon in the toolbox to reveal the elliptical selection tool.
- To add to the current selection, make an additional selection while holding down the Shift key.
- To deselect portions of the current selection, use any selection tool with the Option key down.
- To turn off the current selection, click outside its outline using any selection tool (or use the command Select-->None).
- Photoshop also provides more sophisticated selection tools. You may want to look them up in the program's online help (in the Help menu).
return to top
- Choose any of the painting tools in the toolbox: Pencil, Brush, Airbrush, Line.
- Pick the size and shape of your tool from the Brushes palette (if not visible, use Window-->Show Brushes). For the Line tool, set the Width in the Options palette (Window-->Show Options)
- Choose the color of your tool from the Swatches palette (if not visible, use Window-->Show Swatches)
- In most cases, you will want to turn off any selections (Select-->None). When a selection is active, painting tools leave a mark only within the selection. This can be used as a 'frisket' to protect parts of the picture from unintended overpainting.
- Drag the cursor in the document window to draw.
- The Eraser tool is primarily used to determine
transparency. When the layer highlighted in the Layers palette is 'Background', it can also be used to paint with the background color.
- The background color (shown at the bottom of the toolbox) is initially white, and can be changed by Option-clicking in the Swatches palette.
return to top
- To remove the background of your image so that the color of the web page can show through:
- Find out what type of image you have (in the Mode submenu of the Image menu). If the mode is 'Bitmap', change it to 'Greyscale'; if it is 'Indexed Color', change it to 'RGB Color'; other modes can be left as they are.
- Double-click the name ('Background') of the only item listed in the Layers palette (if not visible, use Window-->Show Layers). In the dialog that appears, click 'OK' .
- With 'Layer 0' highlighted in the Layers palette, make sure that 'Preserve Transparency' (in the same palette) is not checked.
- Use the Eraser tool to remove the background (after choosing an appropriate size and shape from the Brushes palette). The grey checkerboard which is revealed indicates the parts of the image which will be transparent in the final output.
- To enlarge your work space (this may be useful later to make room for distortions or additional elements):
- Image-->Canvas Size. Change the Width and Height units to pixels, and enter the new size (don't overdo it, remember that we want to keep the file size small).
- The position of the gray box in the grid at the bottom of the dialog indicates the position of the current image in the new workspace. Click to reposition it as needed.
- Click 'OK'
- To magnify or shrink your image (shrinking may be necessary to bring the file size down):
- Image-->Image Size. Make sure 'Constrain Proportions' and 'Resample Image' are checked. Change either the 'Width' or 'Height' (the other will adjust proportionally) in the 'Pixel Dimensions' box (the content of the 'Print Size' box can be ignored for this project).
- Keep an eye on the new size in K so it doesn't get too large. Click OK when done.
- Keep in mind that once you shrink the image, some of its detail is lost and cannot be recovered by re-magnifying. Make a backup copy of the picture at the original size.
- If you find that you need to magnify the picture by more than 10-15%, you are better off re-scanning, since the enlarged image will look rather out of focus.
- To crop your image (this also may be necessary to reduce file size):
- Choose the Crop tool in the toolbox (revealed by clicking and holding on the Marquee tool)
- Drag a selection box enclosing the part of the picture that you want to keep.
- Drag the small square handles that appear at the corners of the selection to adjust its size.
- To proceed to crop, press the 'Return' key.
- Like shrinking, cropping is irreversible (parts of the image are tossed out). Keep a backup copy.
- To combine parts of different pictures:
- Arrange the windows with the pictures side-by-side.
- Make a selection in the starting picture (make sure that the correct layer, if any, is selected).
- With the selection tool still active, hold down the Command (Apple) key, and drag the selected portion of the original picture to the window of the destination picture. The selection will be added to the destination document, in a new layer.
- To reposition the new layer and its image content, use the Move tool
- If it is inconvenient to open both pictures at the same time, you can also use the Edit-->Copy and Edit-->Paste commands that you used for text editing.
- You can duplicate a detail within a picture by dragging its selection while holding down the Option and Command keys. Note that this technique will not automatically create a separate layer--when you deselect, the pixels underneath the selection in the current layer will be wiped out.
return to top
- Make a selection (check that the correct layer, if any, is selected)
- Use any of the commands in the first section of the Transform submenu of the Layer menu
- Drag the small square handles that appear at the corners of the selection
- If happy with the result, press the 'Enter' key; if not, press the 'Escape' key. Note that deselecting will again wipe out underlying pixels--no new layer is automatically created.
return to top
- Make a selection (check that the correct layer, if any, is selected)
- Bring up the exposure controls with Image-->Adjust-->Brightness/Contrast. Make sure 'Preview' is checked. Drag the sliders as needed. Click 'OK' when done, or click 'Cancel' to reset.
- Bring up the color controls with Image-->Adjust-->Hue/Saturation. Make sure 'Preview' is checked. Drag the sliders as needed. For a monochrome effect, check 'Colorize'. Click 'OK' when done, or click 'Cancel' to reset.
return to top
- Make a selection (check that the correct layer, if any, is selected)
- Use any of the commands in the Filter menu
- Since the purpose and operation of the filters varies widely, the only generally applicable advice is to make a copy of your image before you begin, then proceed to experiment to your heart's content. Keep in mind that many filters will completely destroy your image--that backup copy is really important.
- Most filter commands will bring up a dialog with controls and a preview window. Adjust the sliders and other controls based on what you see in the preview. Some filters will also show you the effect of your adjustments directly in the document window, provided 'Preview' is checked (for large selections and processor-intensive filters, you may want to uncheck this option to speed up operations). Click 'OK' when done, or click 'Cancel' to reset.
return to top
- First, decide on a file format. The two formats readily viewable using most browsers are JPEG and GIF:
- JPEG is generally more appropriate (smaller file size, better image quality) for photographs and other continuous tone images.
- GIF works better for images with large areas of solid color, such as charts, diagrams, logos, etc.
- Note: if you intend to drop the background of your photograph, then you must use GIF, since transparency is currently not supported by the JPEG standard.
- If you did not erase the background to make it transparent (there is no grey checkerboard pattern showing through your image), and your image is continuous tone:
- In the Layer's palette menu, choose the 'Flatten Image' command, if available.
- Make sure that either 'Greyscale' or 'RGB Color' is checked in the Image-->Mode submenu.
- File-->Save As.
- From the 'Format' pop-up menu, select 'JPEG'. If JPEG is greyed out, you have used unallowed features in your image: click 'Cancel', then make sure that you don't have extraneous items in the Layers and Channels palettes:
- The Layers palettes should contain only the italicized 'Background' layer. If not, use the Flatten command mentioned above.
- The Channels palette should contain only the 'RGB' and 'Red', 'Green', and 'Blue' channels. Any additional channels (you may have to scroll down the list to see them) should be removed by dragging their name to the Trash Can button at the bottom of the palette.
- Enter filename with this format: your last name, underscore, your first name's initial, period, the extension 'jpeg' (without quotes, all lowercase). In Sam Sample's case, the filename would be 'sample_s.jpeg' (again, without quotes).
- Click 'Save'. In the JPEG Options dialog, choose 'Medium' image quality, 'Baseline Standard' format, and uncheck 'Save Paths'. Click OK.
- Select the icon for your JPEG file in the Finder, and use File-->Get Info to check that its size is not much larger than 30K. If it is, go back to Photoshop and repeat the conversion process, cropping/scaling the image and/or choosing a lower image quality setting.
- If you did erase the background to make it transparent and/or your image has solid color fills:
- Check that 'RGB Color' is checked in the Image-->Mode submenu, then File-->Export-->GIF89a Export.
- Make sure 'Interlaced' is checked. Click 'OK'
- Enter filename with this format: your last name, underscore, your first name's initial, period, the extension 'gif' (without quotes, all lowercase). In Sam Sample's case, the filename would be 'sample_s.gif' (again, without quotes). Click 'Save'.
- Select the icon for your GIF file in the Finder, and use File-->Get Info to check that its size is not much larger than 30K. If it is, go back to Photoshop and repeat the conversion process after cropping and/or scaling the image.
- Before closing your image file, use Image-->Image Size to find out the size of your image (width and height, in pixels), and make a note of it for later use.
- In both cases (JPEG and GIF), you will lose image quality in the conversion process (as well as useful features such as layers). Make sure to keep an unconverted copy of your image in case you want to make additional edits later on.
return to top
- On the web, each media item is stored in a separate file, which is then called up by an appropriate tag in the HTML for the web page.
- Updating the HTML file
- Start up Simple Text (you may need to quit Photoshop first to free up memory), and use File-->Open to re-open the HTML file you created from PageMaker in the previous sessions.
- Click with the pointer to place the insertion bar in the text at the location where you would like to see your picture.
- For the tag to work properly, make sure the insertion point is not within a piece of text enclosed by angle brackets ('<' and '>').
- Also, make sure the insertion point is within the BODY section of the file (after <BODY> and before </BODY>).
- Enter the following HTML code:
- a left angle bracket (shift-comma)
- followed by
IMG SRC=
- followed by the name of your GIF or JPEG file, enclosed in quotes
- followed by a space
- followed by
WIDTH=
- followed by the width of your picture in pixels
- followed by a space
- followed by
HEIGHT=
- followed by the height of your picture in pixels
- followed by a right angle bracket (shift-period)
- as an example, Sam Sample's HTML file contains this line
<IMG SRC="sample_s.gif" WIDTH=350 HEIGHT=250>
- Don't forget to save. When all done, use File-->Quit to exit SimpleText.
- Testing the revised HTML file
- Make sure that the GIF or JPEG file you created in Photoshop is in the exact same folder as the HTML file you just modified.
- Test the updated '.html' file by dragging and dropping it on the icon of the web browser program.
return to top
Notes
- Photoshop provides direct access to the colored dots (pixels) that make up the picture, so that you can modify each one without necessarily affecting surrounding dots. This type of operation is known as image processing.
return
- This makes it easier to follow the tutorial by returning to predictable settings. A previous user of Photoshop on the same computer might have left the program in an unusual state. The state of the program is preserved, and reloaded the next time Photoshop is used.
return
Information specific to the ACG Lab
On ACG Lab computers, the program Photoshop is on the hard drive, inside the Paint folder. The program SimpleText is on the hard drive, outside of all folders.
After completing this step of the project, follow the instructions from previous sessions to log on to the file server 'ACG' and to locate the 'Web Pages-Put in Here' drop folder in the class folder. Drag both the updated version of your HTML file and your converted picture file (GIF or JPEG) to the drop folder. Before leaving, make sure to copy your HTML and Photoshop files back to your floppy disks.
The complete manual for Photoshop, in Acrobat format, is available on the 'ACG' lab file server, in the 'ACG_DOCS' volume.
The Art Computer Graphics program of Fullerton College offers a class entirely devoted to Photoshop, ACG132-Electronic Paint. Find it in the schedule of classes.
return
|
previous |
return to top |
next |
This document originally at <http://acg2.fullcoll.edu/LEARN/OVERVIEW/OV060/MAC1EN_P.HTM>
|
Copyright 1997 by Sandro Corsi.
Last modified 23 FEB 1999.
|
SaneDraw home
|