Sub topic 1
Raster Images and Pixels
A raster image is made from a rectangular grid of tiny colored squares called pixels. Photoshop stores the color information for each pixel and uses the grid to display the image. Photographs, scanned artwork, and most screenshots are raster images.
Prerequisites
This chapter assumes that you can open and save Photoshop files, export an image, use the Layers panel, and explain what a pixel is. You should also know basic navigation, such as zooming and selecting tools.
How a raster image is built
Each pixel has a position in the grid and color values. In an RGB document, those values describe red, green, and blue light. Photoshop combines neighboring pixels so that you see continuous shapes and tones rather than separate squares.
The number of pixels across and down is the image's pixel dimensions. An image that is 3,000 pixels wide and 2,000 pixels high has 6 million pixels:
3,000 × 2,000 = 6,000,000 pixels
Pixel dimensions describe the image's actual digital content. They do not directly describe how large the image will print. That printed size also depends on resolution, which is covered later.
Use the Image Size dialog to inspect these values. Choose Image > Image Size. The dialog reports dimensions such as width, height, and resolution. When the units are pixels, width and height describe the grid itself.
Pixels and layers
A Photoshop document can contain several layers. A layer may contain pixels, adjustment instructions, vector shapes, text, or other objects. The document's pixel dimensions define the available grid for raster layers, but a layer does not need to fill the entire grid.
For example, a 2,000 × 2,000 document may contain a small photo in the center and transparent pixels around it. Transparency means that no visible color is stored for those locations. The canvas still includes those locations, so they remain part of the document area.
The Layers panel controls how these elements combine. A layer above another layer can hide its pixels. This changes the visible result without necessarily changing the pixels on the lower layer.
Why pixel dimensions matter
Pixel dimensions limit the detail an image can show. Increasing the zoom makes individual pixels easier to see, but it does not create new detail. If you enlarge a small raster image, Photoshop must estimate additional pixels. This process is called resampling.
Reducing an image removes or combines pixels. This can make a file smaller and often improves its suitability for a web page. Enlarging an image can create soft edges, blocky details, or halos because the new pixels are calculated from nearby pixels rather than recovered from the original scene.
Keep an original copy before changing pixel dimensions. Work on a duplicate or use a Smart Object when you expect to scale the content repeatedly. A Smart Object preserves the source content so Photoshop can calculate the displayed pixels again.
| Term | Meaning | Example |
|---|---|---|
| Pixel | One small color or transparency unit in a raster grid | One square in a photograph |
| Pixel dimensions | Width and height of the complete grid | 3,000 × 2,000 px |
| Raster layer | A layer containing pixels | A pasted photograph |
| Resampling | Adding or removing pixels to change dimensions | Changing 3,000 px to 1,500 px |
Before changing an image, identify whether you need to change the pixel grid, the visible working area, or only the way the image is displayed. Image Size can change the grid. Canvas Size can change the working area around the grid's content. Zoom changes only your view.
Exercise
A document is 1,200 × 800 pixels and contains a 400 × 300 pixel photo layer centered on a transparent background. How many pixels are in the document grid, and does zooming to 200% add pixels?
Show answer
The document grid contains 960,000 pixels (1,200 × 800). Zooming to 200% changes the view only; it does not add pixels.