Skip to content
Tutorials Center
My learning

Topics

Lesson 12 of 37 ยท Layers and Selections

Transforming, Cropping and Canvas Size

Crop and straighten photos, scale and rotate layers with Free Transform, extend the canvas, and understand how transforms affect pixels and quality.

Most edits begin with framing: cut away what does not belong, straighten a tilted horizon, resize a layer to fit, or give the picture more room. Photoshop has three families of tools for this: the Crop tool (changes what part of the image you keep), Free Transform (scales, rotates and distorts a layer) and Canvas Size (changes the working area itself). Understanding how each treats the pixels helps you keep quality.

Photoshop is not available on this site, so these are instructions for your own copy. The stand-in code does the geometry for you: crop ratios, rotation and the bounding box of a rotated layer.

The Crop tool

Choose the Crop tool (C). A frame with handles appears on the image. The options bar offers:

  • Ratio / size presets: Original Ratio, 1:1, 4:5, 16:9, W x H x Resolution, and so on. Pick a ratio to lock proportions while dragging.
  • Swap (arrow icon) to switch between landscape and portrait.
  • Straighten: click it, then drag a line along something that should be level (a horizon) and Photoshop rotates the crop to match. You can also drag outside a corner to rotate the crop box.
  • Overlay options (the grid icon): Rule of Thirds, Golden Ratio, Diagonal, Triangle and more, to help with composition. Press O to cycle through them while cropping.
  • Delete Cropped Pixels: when unticked, the cropped-away pixels are hidden, not deleted, so you can recrop later by activating the tool again. When ticked, they are gone for good. For safety, leave it off unless you need smaller files.
  • Content-Aware fill: when you rotate or enlarge the crop beyond the original edges, Photoshop can fill the new empty corners with plausible pixels.

Commit with Enter, cancel with Esc. Drag inside the box to move the image under the frame. The Perspective Crop tool (nested under Crop) corrects keystoning, such as a building that leans backwards: you place four points on the corners of a rectangle that should be square, and Photoshop makes it so.

Three ways to change the frame

Crop Keep part of the image.
Free Transform Scale, rotate and skew a layer.
Canvas Size Add or remove working area.

Each treats the pixels differently.

1 / 2

Free Transform

Select a layer and press Ctrl/Cmd + T (Edit > Free Transform). A box with handles surrounds the layer. In the options bar you can type exact values for position, W and H (percent), angle and skew; the chain icon links W and H. Using the mouse:

  • Drag a corner handle to scale. In current versions proportional scaling is the default; hold Shift to turn that off and stretch freely (older versions work the other way round, so check your copy).
  • Hold Alt/Option to scale from the centre.
  • Move the pointer just outside a corner to rotate. Hold Shift to snap to 15-degree steps.
  • Right-click inside the box for a menu: Scale, Rotate, Skew, Distort, Perspective, Warp, Flip Horizontal, Flip Vertical, and Rotate 90 degrees.
  • Ctrl/Cmd + Alt/Option + Shift while dragging a corner gives perspective.
  • Press Enter to commit or Esc to cancel.

The Edit > Transform menu has the same commands individually, plus Again (Ctrl/Cmd + Shift + T) to repeat the last transform exactly, which is perfect for repeating patterns.

Content-Aware Scale (Edit > Content-Aware Scale) resizes while protecting detected important areas such as people, stretching the background more. Puppet Warp bends a layer using pins.

Transforms and quality

Every transform resamples the pixels. Scaling a normal pixel layer down and up again permanently blurs it, and rotating by an odd angle also softens. To avoid damage:

  • Convert the layer to a Smart Object first (right-click > Convert to Smart Object). Photoshop then re-renders from the original on each transform, so you can scale freely without accumulating loss.
  • Prefer one transform with the final values to several small ones.
  • Avoid enlarging pixel layers much past 100%.

Canvas Size

Image > Canvas Size (Ctrl/Cmd + Alt/Option + C) changes the document's area without resampling. Increase it to add space for a border or a text banner. Decrease it to crop (Photoshop warns before cutting). Choose an Anchor square to say where the existing image sits, and tick Relative to enter the amount to add rather than the final size. New space on the Background layer takes the Canvas extension colour (background colour, white, black, grey or other). On other layers it is transparent.

Image > Image Rotation rotates the whole canvas by 90 or 180 degrees, flips it, or does an Arbitrary angle. Image > Reveal All enlarges the canvas to show content that lies outside it, and Image > Trim removes transparent or uniform-colour borders.

Geometry in code

The stand-in below handles three calculations you meet while cropping and transforming: what pixel box a ratio crop gives, where the corner of a rotated rectangle ends up, and how large the bounding box becomes after rotation. It is not Photoshop code.

JS Stand-in: crop and rotation geometry

Press Run (or Ctrl + Enter) to see the console output here.

No output.

The 4000 x 3000 photo gives a 3000 x 3000 square, a 4000 x 2250 widescreen strip and a 2400 x 3000 portrait. And a rotated layer needs a bigger bounding box: at 15 degrees the 1000 x 600 layer needs about 1121 x 838 pixels of room, which is why a straightened photo shows empty wedges you must crop or fill.

Rotating a layer around the right point

Rotation turns a layer around a reference point (the small crosshair in the middle of the Free Transform box). Drag it to a corner or use the nine-square reference point locator in the options bar to rotate around that corner instead. This stand-in rotates a point around any pivot, which is the formula under the hood.

JS Stand-in: rotate around a pivot

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Around the centre the corner moves to (150, 150); around the top-left it lands at (0, 200). Same angle, different result: always check the pivot before rotating.

Cropping with Delete Cropped Pixels on, or flattening before a transform, removes the option to change your mind. Keep a PSD with cropped pixels hidden when possible.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does unticking Delete Cropped Pixels do?

    Pixels outside the crop remain in the file, hidden, and can be revealed by recropping.
  2. 2. Which shortcut opens Free Transform?

    Ctrl/Cmd + T starts Free Transform on the active layer.
  3. 3. How do you scale a layer repeatedly without gradual quality loss?

    A Smart Object re-renders from the original pixels on every transform.
  4. 4. What does Image > Canvas Size do to existing pixels?

    Canvas Size changes the working area, not the pixels.

Summary

  • The Crop tool keeps part of the image; leave Delete Cropped Pixels off for flexibility.
  • Free Transform (Ctrl/Cmd + T) scales, rotates, skews and warps layers; every transform resamples pixels.
  • Use Smart Objects so repeated transforms do not degrade quality.
  • Canvas Size adds or removes area without resampling; choose the anchor.
  • Rotation pivots matter; rotated layers need a larger bounding box.

Next: Selection Tools: Marquee, Lasso and Magic Wand