| |
Topics in Graphics Manipulations
Color Model Principles
A color model is a method for displaying and measuring color. The human eye perceives color according to the wavelength of the light it receives. Light containing the full color spectrum is perceived as white. When no light is present, the eye perceives black.
Two of the most common color models are:
- RGB color model
(red, green, and blue), the method by which monitors display color.
- CMYK color model
(cyan, magenta, yellow, and black), the method by which images are printed using the four process ink colors.
Coupled with each color model is a color gamut. The gamut of a color model is the range of colors that can be displayed or printed, with that model. The largest color gamut is that viewed in nature. The RBG gamut is smaller than the natural color gamut, and the CMYK color gamut is smaller than the RGB gamut.
The RGB Color Model
Mixing three basic components of colored light in various proportions can represent a large percentage of the visible spectrum of color. These components are known as the primary colors: red, green, and blue (RGB). Because various percentages of each color are added to create new colors, the RGB color model is known as additive color. Equal amounts of red, green, and blue produce white.
All monitors display color using a mixture of the primary additive colors of red, green, and blue. As a general rule, you should edit your color images in the RGB model for the following reasons:
- RGB files are smaller than files created in other color models.
- Monitors are designed to display RGB colors best.
- The RGB color model provides a larger color spectrum than other color models on a monitor, such as CMYK.
The CMYK Color Model
The CMYK (cyan, magenta, yellow, and black) color model represents the four process inks used to print images on a press. To create a hard copy of an image each of four plates is inked with one of the colors. The CMYK model is called subtractive color because combining all colors subtracts color and produces black.
Help Desk Menu
Resolution Principles
In broad terms, resolution refers to the unit of measurement used to determine the size of an image, the way an image is displayed on your monitor, and the device on which an image is output.
Specifically, you must consider three types of resolution when preparing images in any digital image processor like Corel PHOTO-PAINT or Adobe Photoshop:
- Image resolution
refers to the size of the file in pixels, measured in pixels per inch (ppi).
- Monitor resolution
determines how your image is displayed on your monitor, measured in dots per inch (dpi).
- Output device resolution
determines the quality of a final printed image, which is measured in both dots per inch (dpi) and lines per inch (lpi).
Image Resolution
Digital images are represented in pixels. Image resolution refers to the number of pixels in the image. The more pixels per square inch of the image, the higher its resolution, and subsequently, the larger the file. For example, a 1-inch square of an image scanned at 72 ppi contains 5,184 pixels (72 pixels wide x 72 pixels high), and has a file size of 6K. However, the same 1-inch square of an image scanned at 144 ppi contains 20736 pixels (144 pixels wide x 144 pixels high), and has a file size of 21K.
Monitor Resolution
Monitors have a fixed resolution, determined by the manufacturer. Most Macintosh monitors display images at 72 dots per inch, and typically IBM-compatible monitors display images at 96 dots per inch.
The monitor's resolution determines the size of the image displayed on-screen, and should not be confused with image resolution. Because an image may have a higher resolution than the monitor on which it's displayed, an image with a higher resolution will appear larger on-screen than in print.
Output Resolution
Output device resolution refers to the number of dots per inch (dpi) that the output device produces. For example, laser writers typically have a resolution of 300 or 600 dpi, and a high-quality imagesetter can print at a range between 1200 dpi and 2400 dpi or higher.
Help Desk Menu
Introduction to Image Scanning
Using a scanner is the most common way of getting an image into a digital image processor such as Corel PHOTO-PAINT, Adobe Photoshop, or Microsoft Photo Editor. This section provides general information about scanning techniques to help you determine the most optimized input settings for your images.
Each scanner has its own software that controls how it works. Scanning software may be a plug-in module to advanced graphic software such as Adobe Photoshop, or it may be a stand-alone application such as Pagis Pro or DeskScanII, which is the scanning software for MS Photo Editor in the Computer Lab at LRC, Cuyamaca College. Different scanning software and media, provide different dialog boxes to acquire information about the image to be scanned. Of course, most of the scanning software programs also provide automatic scanning features that will automatically select many of the required parameters. The automatic scanning features make scanning an easy task. Following are some tips about different aspects of scanning to provide some information you. . The features considered in this document are not specific to any particular scanner or scanner software. Depending on the scanner or scanning software you use, only a few of the following features may be applicable. . However, the tips and information in this document may provide basic insight into the contents of image scanning.
Tips Before Scanning
The choices you make before scanning an image affect the quality and usefulness of the resulting digital file. Before scanning an image, be sure to do the following:
- Determine the scan resolution of the image, based on the desired quality of the final output.
- On the scanner bed, define the area of the image you want to scan; then crop the area a bit larger than the actual size of the area you want. You should do final cropping in a digital image processor such as Corel PHOTO-PAINT, Adobe Photoshop, etc. after scanning.
- Determine the optimal dynamic range (if your scanner lets you set black points and white points.)
- Check for color casts (imbalance in one or more colors) that should be eliminated during the scan.
The following section describes how to attempt to select the correct resolution for electronic image publication. The subject of scanning for printed publication is not covered in this document.
Note: When setting a scan resolution, the goal is to balance the resolution with a manageable file size.
Scanning for electronic publication
If you are preparing images for on-screen viewing, the scan resolution need not be greater than the resolution of the target monitor. However, keep in mind that on-screen images are displayed at a 1:1 ratio (1 image pixel to 1 monitor pixel), so the size of an image may vary based on the dpi of the monitor on which the image is displayed.
For Web publication purposes, the resolution need not be higher than the screen resolution. This means set resolution 72 for Macintosh and 96 for PC platforms.
Scanning using the file size setting
The best way to ensure that you have all the data you need for your image to be processed in a digital image processor, is to create a dummy file that tells you exactly how much data-that is, what file size-you need for your final output.
Using this method is helpful if you have an original image that is smaller than the final image you want to produce. For example, if you want to increase a 2-inch-by-3-inch original image to create a 4-inch-by-6-inch scanned image printed at a line screen of 150 lpi, use the file size method to determine how much data you'll need.
Tips about Image Types
Images, in general, can be categorized by a factor referred to as image type. Image type usually contains information of the following nature:
- Color content (Black and White or Color)
- Color depth (16 grays and 256 grays for Black and White, and 16 colors, 256 colors, or Millions of Colors for Color images)
- Scan style (Drawing, Halftone, or Photo)
- Sub-styles (Spot Color or Detailed for Photos and Normal, Diffusion, Fine, Extra fine, Horizontal Line, and Vertical Line for Halftones)
There are two basic image types: drawings and photos. The other selections are provided for special purposes.
Black and white and color options for both drawings and photos are available. The Black and White and Color descriptions refer to whether an image should be scanned for a black and white printer (or screen) or for a color printer (or screen).
Color and Black and White do not refer to the content of the image being scanned.
Drawing
Used for images with large areas of a single color. Line art, logos, and solid color images are examples of the kinds of images to be scanned with a drawing image type.
Files created with a Drawing image type can be edited easily in an image editor.
Photo
Used for images with many shades of gray or color. The color variation in an image is captured pixel-by-pixel when a photo image type is used.
A photo image type is used to scan images that are to be printed or displayed on imagesetters or color screens. Also, use a photo image type to scan an image that is to be edited.
Original photographs and pictures in books, magazines, and newspapers are examples of the kind of images to scan.
Halftone
Used to optimize the quality of scanned photos when printed on desktop printers.
Images scanned as a halftone image type are processed in a way that simulates the many shades of color in the image when it is printed. The halftone process is needed for images printed on desktop printers because they can only print a small range of colors.
Millions of Colors
Used to scan images that are to be displayed or printed on 24-bit color displays or imagesetters.
Files created with the millions of colors setting often contain more than a megabyte of data. For example, a half-page scanned image creates a 12 MB file.
Other image type considerations:
- Drawings and halftones take less memory than photos.
- Drawings and photos can be edited with most image editing applications.
- Halftones should not be edited with image editing applications.
Besides the standard image types, some of the applications allow the user to define custom image types in provided dialog boxes.
Prescan
The prescan option is available only for flatbed scanners. This allows you to scan your document in low resolution, using the highest color depth that scanner allows. Once the prescan is complete the image will be presented in a scan tool window. In a scan tool window, using the controls and tools, you can perform different editing process on the image in the preview area, to adjust and modify and the result of final scanning.
Be sure to keep the image in the same place on the scanner copyboard, the flat glass surface on the scanner, during the scanning process to ensure a good scan. Moving the image between prescanning and final scanning, may cause unexpected results
Tips on Selection Area
The selection area in most applications is shown by a dashed outline in the preview area. Some applications may not automatically create a selection area.
In many applications you can make a selection area as follows:
- Position the pointer in the preview area.
- Drag the mouse in any direction.
- Release the mouse button.
If a selection area is not made, the entire scanner is scanned and saved during a final scan!
In some applications some features become available only if a selection area is made. So creating a selection area is always recommended.
To adjust the size of the selection area:
- Position the cursor on any side or corner of the selection area.
- Press the mouse button and drag the side to a new position.
- Release the mouse button.
To move the selection area
- Position the cursor inside the selection area.
- Press the mouse button and drag the selection area to a new position.
- Release the mouse button.
To remove a selection area
- Click anywhere in the Preview Area outside of the selection box.
Lasso
Another way of selecting an area is called Lasso, which is available almost in all applications. It can be used to create an irregularly shaped selection area inside the preview area.
Tips on Zoom Scan
Most applications provide a button in the main scanning window or dialog box a feature that rescans and enlarges the selected portion of an image to the maximum size allowed by the preview Area.
Zoom Scans allow you to select a more precise area of the image for scanning.
If the selected portion includes most of the preview area, the zooming action only slightly magnifies the view. To solve that, enlarge the size of the preview area, if allowed, and/or create a smaller selection area.
Acquiring an Image Using the TWIN Interface
TWAIN is a cross-platform interface for acquiring images captured by certain scanners and frame grabbers. The manufacturer of the TWAIN device always provide a Source Manager and TWAIN Data source for the device; otherwise, the module will not work.
The first time you use the TWAIN device, you must choose TWAIN Select Source, and select the device you're using. You do not need to do this step for the scanner in the Computer Lab, since it is already done.
If more than one TWA1N device is installed in your system, such as a digital camera and a scanner, and you want to switch devices, use the TWAIN Select Source command to choose the new device. In this case, in subsequent use of the TWAIN module you may have to use the TWAIN Select Source, to switch devices.
Scanning at Cuyamaca LRC Computer Lab
You can scan the images at the Computer Lab using either Adobe Photoshop or Microsoft Photo Editor applications. To create images for Web publishing, Adobe Photoshop is more difficult to use but it provides different editing tools and special effects that could enhance the final image. Using Adobe Photoshop editing tools and special effects, in full, needs experience in digital image processing. Microsoft Photo Editor is much easier to use but it does not provide special effects and fine tools for enhanced image processing. If the main purpose of image scanning is Web publishing and you don't have enough experience in using Adobe Photoshop, use Ms Photo Editor.
Help Desk Menu
Color Modes and File Format for Web Publication
There are two image file format that are used for distribution on the Web: GIF and JPEG.
GIF stands for Graphic Interchange Format and is a standard for digitized images compressed with the LZW algorithm, defined in 1987 by CompuServe. It is a lossless compression. Process of GIF formats production starts by converting the flat-color image to Indexed Color mode. The Indexed Color mode converts 24-bit images to 8-bit images, which display up to 256 colors. This means if the original image has more than 256 colors, all but 256 of the colors are removed from the image. However, if the original image contains fewer than 256 colors, the palette defaults to exact number of colors.
JPEG stands for Joint Photographic Experts Group; the original name of the committee that designed the standard image compression algorithm. The JPEG format is a better choice for preserving color fidelity if the original image is continuous tone (contains gradations of color or is full-color photographic image) and it is aimed towards viewers who have 24-bit monitors, which has the capacity to display millions of colors. JPEG images are subject to loss of quality due to compression. The compression option you use determines how the color information in the image is preserved (the greater the degree of compression, the greater the data loss) and the overall size of the file.
The following table shows, which file formats and color modes, should be used when preparing specific types of images for web publication.
|
Image |
Color Mode |
File Format |
|
Flat color |
Indexed color |
GIF |
|
Full color (continuous tone) |
RGB or Grayscale |
JPEG |
|
Gradient |
RGB or G rayscale |
JPEG |
|
Grayscale |
Grayscale |
Export GIF89a |
|
Black and White |
Bitmap |
Export GIF89a |
In order to create a standard Web color pallette that works on different platforms, since the Macintosh and Windows browsers pallettes share only 216 out of 256 possible colors, the image is reduced to 216 colors, even less than in the GIF format., these two platforms.
The Following color table shows the standard Web palette of 216 colors that are common between Mac and PC platforms.
The hexadecimal values for the standard Web pallette are the true color on either platform, with no dithering and can be used with Netscape or Microsoft Internet Explorer for backgrounds colors, text colors, and link colors.
Hexadecimal Values and Names of the Colors
Help Desk Menu
Restoring Default Preferences Using Adobe Photoshop
The Preferences file controls how palettes and command settings appear on your screen when you open Adobe Photoshop program. Each time a user quits Adobe photoshop, the position of palettes and certain command settings are recorded in the Preferences file.
To ensure that tools and palettes are their standard settings, delete the preferences file before you begin each session.
To delete the Photoshop Preferences file for Adobe Photoshop 4.0 on the Macintosh:
- Locate the Adobe Photoshop 4.0 Pres file in the Preferences folder in the System folder.
If you can't find the file choose Find from the desktop file menu, enter Adobe Photoshop 4.0 Prefs in the text box, and click find.
- Drag the Adobe Photoshop 4.0 Prefs file to the Trash.
- Choose Special, Empty Trash
To delete the Photoshop Preferences file for Adobe Photoshop 4.0 in Windows :
Locate and Delete the Photoshop40.psp file.
If you can't find the file, then do as follows:
- Click Start
- Click Find
- Click Files or Folders
- Make sure Name & Location tab is selected
- Click Browse next to Look in: drop-down list box
- Select (C:), if you using computer labs at Cuyamaca College or your personal
- Click Find Now
- Locate and delete the file.
For Adobe Photoshop 5.0, "Adobe Photoshop Settings" folder or it's contents have to be deleted.
To do this on the Macintosh:
- Locate the Adobe Photoshop Settings folder in the System folder.
If you can't find the file choose Find from the desktop file menu, and locate the folder.
- Drag the Adobe Photoshop Settings folder or its contents to the Trash.
- Choose Special, Empty Trash
In Windows:
Delete the Adobe Photoshop Settings folder or its contents.
To quickly locate and delete the above file or folder, create an alias (Macintosh) or shortcut (Windows) for the appropriate file or folder.
Help Desk Menu
Preparing Images for Web Publication Using Adobe Photoshop
GIF Format
If you are going to use the scanner to import images into Adobe Photoshop, it is suggested to read "Introduction to Scanning" before starting scanning.
- Start Photoshop.
- Click on File menu and select Import, TWAIN or TWAIN_32 (whatever is available). Follow the scanning instructions, scan and open the scanned image in the Adobe Photoshop main window.
If you are not scanning and want to open a saved image in the Photoshop then, select Open from the file menu. In the Open dialog box, locate the image and click Open.
- Click on File menu, select Save As... and save the original image as a Photoshop image. Always keep a saved copy of the original image.
- Click on Image menu on the menu bar and select Mode. In the Mode menu choose Indexed Color. (In this process the image will be converted to Indexed Color Mode i.e. 8-bit image.)
- At this stage you may be asked, Flatten layers? Click on OK.
- When the Indexed Color dialog box appears, set the parameters of the GIF image you want to create as follows:
- For Palette choose WEB
- The Color Depth menu should automatically display OTHER and the Colors should read 216.
- Under Options select
- Dither=None
for a non-transparent GIF picture, or
- Dither=Diffusion
for a transparent GIF picture
- For Color Matching: option, if prompted (not available on all versions of Photoshop), select Faster
- Click OK.
At this stage you are ready to save the image as a non-transparent GIF or a transparent GIF.
- To save the image as a non-transparent GIF:
- Click on File menu and select Save As
- In the Save As dialog box, enter a name for your GIF picture in the File Name box and select CompuServe GIF (*.GIF) from the Save As drop down list box.
- Click on Save button
- In the GIF Options dialog box, check:
- Interlace
for gradual reveal of the picture on browser (larger file size and hence longer loading time on WWW), or
- Normal
for top to bottom reveal.
- To save the image as a transparent GIF:
- Click on File menu, select Export and select GIF89a Export.
- In the GIF Options dialog box, check:
- Interlace
for gradual reveal of the picture on browser (larger file size and hence longer loading time on WWW), or
- Normal
for top to bottom reveal.
- In the GIF89a Export dialog box, select the hand tool to move and see the entire image in the preview window.
- Click the eyedropper tool in the GIF89a Export dialog box. The eyedropper tool is used to select the colors you want to make transparent.
- Drag the eyedropper tool over the Transparency From color menu and click the color(s) you want to make transparent.
- Click OK.
- In the GIF Export 89a dialog box enter the file name for the GIF picture and click on Save button.
Open your Web browser, locate and open the saved GIF Image to view.
Tip
One of the ways you can reduce the size of images for the Web publication is to turn off the Image Preview option in the Preferences dialog box. Turning off the Image Preview option saves files without a preview icon. To do this:
- Choose File > Preferences > Saving Files.
- Choose Never Save from the Image Previews menu.
- Click OK.
Help Desk Menu
Preparing Images for Web Publication Using Adobe Photoshop
JPEG Format
If you are going to use the scanner to import images into Adobe Photoshop, it is suggested to read "Introduction to Scanning" before starting scanning.
- Start Photoshop.
- Click on File menu and select Import, TWAIN or TWAIN_32 (whatever is available.) Follow the scanning instructions, scan and open the scanned image in the Adobe Photoshop main window.
If you are not scanning and want to open a saved image in the Photoshop then, select Open from the file menu. In the Open dialog box, locate the image and click Open.
- Click on File menu, select Save As and save the original image as a Photoshop image. Always keep a saved copy of the original image.
- To make sure that the image is in RBG Mode, click on Image menu and select Mode. If RBG Color is not selected, click to select it.
- To flatten the image, click on Layer and select Flatten Image.
- Once the image becomes flattened it is ready to be saved in JPEG format. Click on File menu and select Save As.
- In the Save As dialog box, enter a name for your JPEG image in the File Name box, select JPEG from the Save As drop down list box and click Save button.
- In the JPEG Option dialog box:
- Enter a number between 0 and 10 for Image Options Quality: or choose from the four drop-down menu options. Or move the slider, left or right to choose the quality options.(They all perform the same function.)
A Maximum setting will compress the image the least, and preserve image quality the most, but the resulting file size from this setting will be larger than with any other setting. In general, the compression level is on a scale of 1 to 10 where 1 being a very small file size, but low quality and 10 being very large file size, but high quality. Try different settings on different versions of the original image, and experiment the differences for a final decision.
- In the Format Options menu click the Baseline (Standard) button to minimize the amount of data loss during compression (the most common format used in JPEG creation.) Or, choose Baseline Optimized to optimize image quality during compression.
To produce a progressive JPEG file, choose Progressive for Format Option. This type of file will display in the Web browser in several passes, with more detail revealed with each pass. Choose the desired number of passes (scans) from the Scans drop-down menu.
- Click OK or press Enter to create the JPEG image.
Open your Web browser, locate and open the saved JPEG Images to view.
Tip
One of the ways you can reduce the size of images for the Web publication is to turn off the Image Preview option in the Preferences dialog box. Turning off the Image Preview option saves files without a preview icon. To do this:
- Choose File > Preferences > Saving Files.
- Choose Never Save from the Image Previews menu.
- Click OK.
Help Desk Menu
Preparing Images for Web Publication Using
Microsoft Photo Editor
It is suggested to read "Introduction to Scanning" before starting scanning images for Web publications. I assume that you are using the scanner in order to import images into the MS Photo Editor.
- Put the original image on the scanner.
- From the Desktop, click on the Start button.
- Select Programs.
- Select Microsoft Office
- Click on Microsoft Photo Editor. The main window of Microsoft Photo Editor opens.
- Select Scan Image from the File menu.
- Click Preview.
- Open the Type pop-up menu and select the appropriate type that image should be scanned and processed:
The Type pop-up menu provides image type selections. The image contains the following items of information:
- Color content (Black and White or Color)
- Color depth (16 grays and 256 grays for Black and White, and 16 colors, 256 colors, or Millions of Colors for Color images)
- Scan style (Drawing, Halftone, or Photo)
- Sub-styles (Spot Color or Detailed for Photos and Normal, Diffusion, Fine, Extra fine, Horizontal Line, and Vertical Line for Halftones)
When an image Type is selected the above information is automatically set for final scanning. You can find the values for any of these items by opening the Custom Image Type dialog box and selecting the item.
When Automatic Find is active, DeskScan II, which is the scanning software, will automatically select an image type for the image after it does a Preview Scan. Automatic Find is activated by a check box in the Preferences dialog box under the Edit menu. If you want to edit the image manually, use the Help menu.
Once you have completed this stage you are ready for final scanning and saving the image.
- Click Final.
The Final button and the Save and Save As commands in the File menu are nearly equivalent. The difference is that the Save command automatically saves the image to the last file name entered.
Usually, a selection area is created in the Preview Area prior to a Final Scan. If a Final Scan is done without a selection area, the entire scanner copyboard is scanned and saved.
To Save the Image File
- Select the file format, from Save as type: in the Save As dialog box. Select Compuserve GIF or JPEG, depending on your decision.
- Type the file name.
- Click Save.
Keep the image in the same place on the scanner copyboard during the scanning process to ensure a good scan. Final Scan does not re-paint the image to the screen. Instead, the Preview Scan or Zoom Scan image remains in the Preview Area.
If you are not scanning and want to open a saved image in the Microsoft Photo Editor then, select Open from the file menu. In the Open dialog box, locate the image and click Open. Select Save As from File menu and save the image in the required (GIF or JPEG) format.
Help Desk Menu
|
|