Sub topic 5
Cropping without losing pixels
This chapter assumes you can open and save images in Photoshop, find the options bar, and work with layers at a basic level. It also assumes you know that an image is a grid of pixels with a fixed resolution. If you know that, you can decide whether a crop should throw pixels away or only hide them.
What "destructive" means for a crop
A crop makes the visible canvas smaller. What happens to the pixels outside the new boundary depends on one setting. By default, Photoshop deletes them. That is a destructive crop. After you save and close the file, the pixels are gone and you cannot get them back.
A non-destructive crop keeps the outside pixels in the file but hides them. You can reopen the Crop tool later and drag the edges outward to recover the full image.
The setting is the Delete Cropped Pixels checkbox in the options bar while the Crop tool (shortcut C) is active.
| Delete Cropped Pixels | What happens to outside pixels | Can you recover them? |
|---|---|---|
| Checked | Permanently discarded when you commit | No, except by undoing in the same session |
| Unchecked | Kept in the layer, outside the canvas | Yes, by re-cropping or revealing them |
Setting the option
- Select the Crop tool.
- In the options bar, find Delete Cropped Pixels. In current versions it sits behind the gear icon (Set additional Crop options) or directly in the bar, depending on your version.
- Uncheck it to crop non-destructively.
The checkbox is a tool setting. Photoshop remembers it between crops and between sessions, so check its state before you start. A crop you assumed was reversible may not be.
What happens when the box is unchecked
When Delete Cropped Pixels is off, the committed crop changes the canvas size but leaves the layer content intact. The layer is now larger than the canvas. The part outside the canvas is not displayed, not exported, and not printed.
You can confirm this in two ways:
- Select the Move tool and drag the layer. The hidden area slides into view.
- Choose Image > Reveal All. The canvas expands to show every pixel of every layer.
To change the crop later, pick the Crop tool and click the image. The crop box reappears at the current boundary, and the hidden pixels show dimmed around it. Drag the handles outward to reclaim them.
Which layers the hidden-pixel approach works on
The behavior differs by layer type, and this is where most surprises come from.
The Background layer
The Background layer is locked and cannot extend beyond the canvas. If you crop a flat image that has only a Background layer with the box unchecked, Photoshop converts the Background into a regular layer (named "Layer 0") so it can hold the hidden pixels. This is normal. Be aware that the file now has a regular layer where it had a locked Background.
Regular pixel layers
Each pixel layer keeps its full content. Hidden regions persist in the saved PSD or TIFF. Layer masks, adjustment layers, and effects continue to work as before.
Smart Objects
A Smart Object can be larger than the canvas as well. Its source data is untouched by the crop in either mode, because the embedded original stays inside the object. The crop only changes how much of it shows.
Type and shape layers
Vector layers are not pixel data, so there is nothing to delete. They stay editable and may simply extend past the canvas.
A safer workflow: crop on top of a Smart Object
Unchecking the box protects you inside one document, but the hidden pixels live in the layers, so the protection depends on the file format. For stronger guarantees, combine the setting with a Smart Object.
- Open the image.
- Choose Layer > Smart Objects > Convert to Smart Object.
- Uncheck Delete Cropped Pixels.
- Crop as usual and commit.
- Save as PSD or TIFF with layers preserved.
The original image data is stored inside the Smart Object. If you later want a different crop, you can re-crop, or double-click the Smart Object to open its contents and see the untouched source.
Cropping with a Smart Filter-friendly approach
Smart Filters, such as Camera Raw Filter, apply to the whole Smart Object. A non-destructive crop does not interfere with them. The filters still operate on the full source, so edge-dependent effects like vignettes or blurs behave the same whether you crop later or earlier. Because the filter sees the full image, a vignette applied before the crop is positioned relative to the original frame, not the cropped one. If you want the vignette centered on the cropped view, apply it after cropping or use Camera Raw's post-crop vignette.
Where the hidden pixels do not survive
Hidden pixels live only in layered formats. They disappear when the file is saved in a format that flattens or cannot hold layers outside the canvas.
| Save format | Hidden pixels kept? | Notes |
|---|---|---|
| PSD, PSB | Yes | Layers and overhang are preserved |
| TIFF with layers | Yes | Needs the **Layers** option on in the save dialog |
| JPEG, PNG, GIF | No | Flattened to the canvas; the overhang is dropped |
| TIFF without layers | No | Flattened on save |
When you export to JPEG for delivery, the exported file contains only the canvas area. Keep your layered PSD as the master and treat the JPEG as a derived copy. If you save over the PSD with a JPEG, the hidden pixels are gone from that file.
Edge cases and limits
Canvas size limits and file size
Hidden pixels still count toward file size and memory use. A large overhang in a PSD adds to the saved file even though you never see it. If a tight crop leaves a lot of unused area, the file stays large.
Rotation and the Straighten option
When you rotate or straighten with the box unchecked, the rotated layer keeps its full rectangle. The corners that rotate out of the canvas stay in the file. With the box checked, they are discarded at commit. This matters when you later change the straightening angle: only the unchecked workflow lets you re-open the crop and adjust the angle without resampling from already-trimmed data.
Reducing hidden data deliberately
Sometimes you want to discard the overhang, for example to shrink a file before sending it to a client. There are three ways:
- Re-crop with Delete Cropped Pixels checked, drawing the box to exactly the current canvas.
- Choose Image > Crop after selecting the whole canvas with
Ctrl+A/Cmd+A. - Flatten the image and save to a flat format.
Expanding past the original edges
You can drag the crop handles beyond the canvas edge to enlarge the canvas. Where there are no hidden pixels, the new area is filled according to the Fill option in the options bar (Transparent, Background color, or Content-Aware, covered in a later chapter). On a locked Background layer, an expanded area is filled with the background color.
Layer masks and the overhang
A layer mask is cropped like any other pixel content. With the box unchecked, the mask extends with the layer. If you paint on the mask in the overhang area, the paint is saved but will not show until you reveal that area.
Other documents: copy and paste
If you copy a layer into another document, the overhang comes with it. The pasted layer is larger than it looks. That can be a surprise when you later move it and see unexpected content slide in.
Checking what is hidden
Before you send a file anywhere, check what it contains.
- Image > Reveal All expands the canvas to the bounding box of all layers. This shows whether there is hidden content. Use
Ctrl+Z/Cmd+Zafterward if you only wanted to look. - Select a layer and look at its bounds in the Properties or Info panel.
- Use File > File Info to confirm the dimensions of what will be exported.
This matters for privacy. A cropped photo may still contain a face, a street sign, or a document you meant to remove. If you share the layered file, anyone can recover those pixels. When you crop to remove sensitive content, use a destructive crop or export a flat copy.
A worked example
You have a landscape photo, coast.psd, with the Background layer only. The client wants a 4:5 portrait crop now but may ask for a wider version later.
- Press
Cto select the Crop tool. - Uncheck Delete Cropped Pixels in the options bar.
- Set the ratio to 4:5 and drag the crop box over the subject.
- Press
Enterto commit. The Background becomes "Layer 0" automatically. - Choose File > Export > Export As, pick JPEG, and export the portrait.
- Save the PSD. It still holds the full landscape frame.
A week later the client asks for a wider crop. You open coast.psd, press C, click the image, and drag the handles outward. The hidden pixels return. No resampling or re-import is needed, because the data never left the file.
If the same client had asked you to remove a stray person at the edge, you would apply the destructive route before delivering the PSD, or deliver only the JPEG.
Summary of decisions
| Situation | Setting |
|---|---|
| Working copy you may recrop or rotate again | Unchecked |
| Final delivery as a flat file | Export from the layered master |
| Removing sensitive content from a file you will share | Checked, or flatten |
| Reducing file size | Checked, or Image > Crop on the full canvas |
Exercise
You crop a photo with Delete Cropped Pixels unchecked, save it as portrait.psd, then export portrait.jpg. Later you open portrait.jpg and try to drag the crop handles outward to recover the cut-off sky. Why does this not work, and which file should you use?
Show answer
The JPEG is a flat file. Exporting to JPEG keeps only the canvas area, so the overhang is dropped and cannot be recovered. The hidden pixels remain only in the layered portrait.psd. Open the PSD, select the Crop tool, click the image, and drag the handles outward there.
Exercise
A colleague sends you a layered PSD that was cropped to remove a license plate from a car photo. They say the plate is gone. What two checks can you run to find out whether the plate pixels are still in the file, and what should they do before sharing it?
Show answer
Choose Image > Reveal All to expand the canvas to all layer content, or select the layer and inspect its bounds in the Properties or Info panel. If the layer extends past the canvas, the plate may still be present. Before sharing, they should re-crop with Delete Cropped Pixels checked (or flatten the image), or share only a flattened export.