Sub topic 8
Canvas Size: changing the working area
This chapter assumes you know that an image has pixel dimensions, that resolution is measured in pixels per inch (ppi), and that the Image Size dialog can resample. You should also be able to work with layers and the Background layer. Here you learn what Canvas Size changes, what it leaves alone, and the errors that most often catch people out.
What the canvas is
The canvas is the rectangular working area of a document. Every pixel of the document lives inside it, and anything outside it is not part of the saved image or its export. Image Size changes how many pixels the artwork contains. Canvas Size changes the boundary around the artwork and leaves the artwork's pixels at their current scale.
Three results are possible:
- Larger canvas: Photoshop adds empty pixels around the existing ones. The artwork keeps its pixel size and position relative to the anchor.
- Smaller canvas: Photoshop removes pixels at the edges. This is a crop, so the removed pixels are lost unless you take extra steps (see the edge cases below).
- Same size: Nothing changes.
Because the artwork is never scaled, Canvas Size does not resample. No interpolation happens, so it does not soften the image.
Opening the dialog
Choose Image > Canvas Size. The shortcut is Alt+Ctrl+C on Windows and Option+Cmd+C on macOS. The dialog has four groups of controls:
- Current Size shows the width and height in the chosen unit, plus the file size.
- New Size holds the new width and height, a unit menu for each, and the Relative checkbox.
- Anchor is a 3 x 3 grid of squares with arrows that show which way the canvas grows or shrinks.
- Canvas extension color is a menu that decides what fills any new area.
Notice that there is no Resolution field and no Resample checkbox. Canvas Size never touches resolution.
Units and the ppi link
You can type values in pixels, inches, centimeters, millimeters, points, picas, columns, or percent. A non-pixel unit is converted to pixels using the document's resolution. A document at 300 ppi that you extend by 1 inch gains 300 pixels in that direction. The same 1 inch on a 72 ppi document gains 72 pixels.
This explains a common surprise. Two documents can show the same width in inches but gain a different number of pixels from the same Canvas Size entry. If you want exact pixel counts, switch the unit menus to pixels before you type.
pixels added = inches added x ppi
Extend by 0.5 in at 300 ppi -> 150 px
Extend by 0.5 in at 72 ppi -> 36 pxThe Relative option
With Relative off, the width and height boxes hold the final size. With Relative on, they hold the amount to add (or subtract, if you enter a negative number). The boxes reset to 0 when you turn Relative on.
Relative is the easier choice when you know how much extra space you need, such as a border. Suppose a document is 1920 x 1080 px and you want a 40 px border on every side. With Relative on, type 80 for width and 80 for height. You enter 80 because the border is added on both sides, so each axis grows by twice the border width.
With Relative off, you type the totals: 2000 and 1160.
The anchor point
The anchor grid decides where the existing artwork sits inside the new canvas. The selected square, shown as a dot, marks the part of the artwork that stays fixed. The canvas grows or shrinks away from that point.
The table shows common anchor choices for extending a canvas.
| Anchor | Where new space appears | Typical use |
|---|---|---|
| Center | Equally on all sides | Even borders, padding |
| Top center | Below the artwork, and equally left and right | Extra space for a caption |
| Bottom center | Above the artwork, and equally left and right | Sky or headroom for a headline |
| Left center | To the right of the artwork | Extra room for text on one side |
| Top left | To the right and below | Extending a layout toward the bottom right |
When the canvas shrinks, the anchor works the same way in reverse. The anchor square stays, and pixels are removed from the opposite sides.
Canvas extension color
The Canvas extension color menu fills the new area. The options are Foreground, Background, White, Black, Gray, and Other, which opens the color picker.
What actually happens depends on the layer structure:
- If the document has only a Background layer, the new area is filled with the chosen color.
- If the bottom layer is a normal layer (not locked as Background), the new area is transparent. In many Photoshop versions the extension color menu is unavailable or has no effect in that case.
- Layers above the bottom layer are never filled. They simply gain transparent space around them.
This catches many people. If you extend a canvas and expect white but see a checkerboard, the document has no Background layer. Add a new layer below the others and fill it, or convert the layer to a Background layer with Layer > New > Background from Layer.
Shrinking the canvas
When you enter a smaller size, Photoshop warns that the new canvas is smaller than the current one and that some clipping will occur. Choose Proceed to continue.
Two points matter here:
- The clipped pixels are not always gone. If a layer is not the Background layer, its pixels beyond the canvas edge may still exist in the document, hidden outside the visible area. You can bring them back with Image > Reveal All, or by moving the layer.
- On the Background layer, clipped pixels are discarded for good.
Cropping with the Crop tool behaves similarly. Its Delete Cropped Pixels option decides whether the cropped data is kept. Canvas Size has no such checkbox, so the layer type decides what survives. When you must keep everything, duplicate the document first or work on layers instead of a flat Background.
Canvas Size and layers
Canvas Size does not scale layers. Their pixels stay the same size and keep their position relative to the anchor. A few effects follow from this:
- Layer masks and vector masks keep their own pixel size. They do not stretch to the new canvas.
- Smart Objects keep their transform and their embedded content. Only the document boundary around them moves.
- Guides stay at the same position measured from the top left, not from the anchor. After an extension anchored at the center, guides may no longer line up with the artwork. Check them afterward.
- Artboards have their own boundaries. Canvas Size does not behave the same way inside a document that uses artboards. Resize an artboard with the Artboard tool or the Properties panel instead.
Canvas Size versus Image > Reveal All and Trim
Two related commands are worth knowing:
- Reveal All enlarges the canvas to include layer pixels that sit outside it. It needs no numbers.
- Trim shrinks the canvas to remove transparent or same-colored borders. It is a quick way to undo a canvas extension that was too generous.
A worked example
You have a 1600 x 900 px banner at 72 ppi. A client wants a 1600 x 1200 px version with extra space at the bottom for a caption.
- Open Image > Canvas Size.
- Set both unit menus to Pixels.
- Turn on Relative.
- Enter 0 for Width and 300 for Height.
- Click the top center square in the anchor grid.
- Set the extension color to White.
- Click OK.
The document is now 1600 x 1200 px. The banner sits at the top, and a 300 px white strip appears below it. The banner pixels are unchanged because no resampling took place.
Without Relative, you would type 1600 and 1200 instead, with the same result.
Common errors
- Wrong unit. Typing 200 while the unit is inches creates a canvas of 200 inches. Check the unit menus first.
- Wrong anchor. The anchor from the previous use is not reset reliably, so confirm the dot every time.
- Expecting scaling. If the artwork should become larger or smaller, use Image Size. Canvas Size will only add or remove space.
- Unexpected transparency. The document has no Background layer, so the extension color is ignored.
- Lost edges. A smaller canvas on a flattened image removed pixels permanently. Use Undo right away, or reopen the saved file.
- Oversized files. Adding a large border to a big document raises the pixel count and the file size. Look at the file size shown in the dialog before you click OK.
Exercise
A 3000 x 2000 px document at 300 ppi has only a Background layer. You open Canvas Size, tick Relative, set the units to inches, enter 0.5 for Width and 0.5 for Height, choose the center anchor, and click OK. What are the new pixel dimensions, and where does the new area appear?
Show answer
Each axis grows by 0.5 in x 300 ppi = 150 px, so the new size is 3150 x 2150 px. With the center anchor, the 150 px is split equally, so 75 px is added on each side. The new area is filled with the canvas extension color because the document has a Background layer.
Exercise
You extend the canvas of a layered document and see a checkerboard pattern instead of the white you chose as the extension color. Give the likely cause and one fix.
Show answer
The document has no Background layer, so the new area is transparent and the extension color does not apply. Either create a new layer below the others and fill it with white, or convert the bottom layer to a Background layer with Layer > New > Background from Layer before extending the canvas.