Sub topic 9
Cropping to a Selection, Trimming, and Changing Canvas Size
This chapter assumes that you can open an image, make a basic selection, and understand that layers contain image content while the document has a separate canvas. These three Photoshop commands change an image in different ways. Choosing the wrong one can remove pixels or leave unwanted empty space.
Crop, trim, and canvas size compared
- Image > Crop removes everything outside an active rectangular selection.
- Image > Trim removes unwanted edges based on transparency or the color of a corner pixel.
- Image > Canvas Size changes the document’s visible work area without scaling the image content.
The commands can produce similar-looking results, but their starting points and purposes differ.
| Command | Uses | Changes image scale? | Main risk |
|---|---|---|---|
| Image > Crop | Keeps a selected rectangular area | No | Pixels outside the selection are removed |
| Image > Trim | Removes matching or transparent borders | No | Content matching the chosen edge rule may be removed |
| Image > Canvas Size | Adds or removes space around the image | No | Reducing the canvas clips content outside it |
The Image Size command is different from all three. It changes the pixel dimensions of the image and can resample the content. Use it when you need to resize the image, not when you only need to change its boundaries.
Cropping to a selection
Use Image > Crop when you already know the exact rectangular region that should remain.
- Choose a selection tool, such as the Rectangular Marquee tool.
- Drag a selection around the area to keep.
- Adjust the selection if necessary. You can move it by dragging inside the selection.
- Choose Image > Crop.
- Deselect with Select > Deselect or
Ctrl+Don Windows orCommand+Don macOS.
Photoshop crops the document to the selection bounds. The selection does not need to begin at the top-left corner. This makes the command useful for removing a border or creating a precisely positioned output area.
The selection itself is not an aspect-ratio preset. To create a fixed proportion, enter values in the selection tool’s options bar, such as 4:5. To create a specific pixel region, choose a fixed-size style and enter the width and height in pixels.
Crop is usually a destructive boundary change. Content outside the crop may no longer be available, especially on layers that do not preserve extra content. Save a copy first when the original framing may matter later.
> callout note > Crop to a selection uses the selection boundary, not the visible bounds of one selected layer. If several layers extend beyond the selection, all of them are clipped by the document crop.
Trimming unwanted borders
Use Image > Trim when an image has a border that is uniform or transparent.
Choose Image > Trim to open the Trim dialog box. Under Based On, select one of these options:
- Transparent Pixels removes transparent edges.
- Top Left Pixel Color removes edge pixels matching the color of the document’s top-left pixel.
- Bottom Right Pixel Color uses the color of the bottom-right pixel instead.
The dialog also lets you choose which sides to trim: top, bottom, left, and right. Clear a side when you want to preserve that edge.
Trim works from the edges inward. It does not remove a matching-colored region surrounded by different pixels. For example, if a white border surrounds a photograph, choosing a corner with white pixels can remove the border. If a white object touches the edge, Trim may remove part of that object if its color matches the selected edge rule.
Inspect the corners before using a color-based trim. A shadow, texture, or slight color variation can prevent the border from being removed evenly.
Changing canvas size
Use Image > Canvas Size when you want to add workspace around an image or set the document to exact outer dimensions.
In the Canvas Size dialog box:
- Choose the measurement unit, such as pixels, inches, or centimeters.
- Enter the new Width and Height.
- Use the Anchor grid to decide where the existing image stays.
- Optionally select Relative to enter the amount to add or remove instead of the final size.
- Confirm the change.
With the center anchor, extra space is distributed around all sides. With a left-side anchor, the existing image remains against the left edge and new space is added mainly to the right. The anchor is therefore important when extending a banner, adding room for text, or preparing an image for a fixed layout.
Increasing the canvas reveals empty space. On a normal layer, that space is transparent. A Background layer may display the current background color instead. Reducing the canvas clips content outside the new boundary, so check the preview and save a version before confirming.
Use Canvas Size rather than Image Size when the subject must remain the same pixel size. For example, adding 400 pixels to the right of a product photo creates room for a label without enlarging the product.
Choosing the method
Ask what defines the boundary:
- Choose Crop for a deliberate rectangular selection.
- Choose Trim for automatic removal of transparent or uniform borders.
- Choose Canvas Size for controlled expansion or a fixed document frame.
> exercise > Q: A scanned photograph has a thin white border on every side, and you want to remove only that border without changing the photograph’s scale. Which command should you try first, and what should you inspect before confirming? > A: Try Image > Trim with a corner-pixel color option. Inspect the top-left or bottom-right corner and verify that the border color does not also belong to important subject detail touching the edge. >