Tom Gera
Tools for creators

Paste Align

A free Photoshop plugin that puts a pasted crop back exactly where it came from, at the right size.

PhotoshopCompositingUXP plugin

You take a crop from your comp, send it to Magnific or Nano Banana, and it comes back twice as big and a bit different. Then you paste it in and spend a minute nudging and scaling until it lines up with what's underneath. Paste Align does that minute for you. It looks at the pasted layer, finds where it belongs in the image below, and scales and moves it into place.

Comp 1Take a crop from your compand edit or upscale it anywhere Edited crop · 2.4× bigger 2Paste it back inat whatever size it comes Comp · just pasted 3Paste Align compares itwith the image underneath Comp · aligned match 97% 4Scaled and moved into place,as a smart object, one undo
It compares the pasted layer with the comp underneath, at every size, and snaps it to the best match. One undo step.

Install (once)

  1. Unzip the folder and keep it somewhere you'll find it again.
  2. Easiest: double-click paste-align.ccx. Creative Cloud asks whether to install an unverified plugin; say yes and restart Photoshop. The panel is under Plugins › Paste Align.
  3. If that doesn't work, install UXP Developer Tool from the Creative Cloud app, click Add Plugin, pick manifest.json in the folder, then Load. You have to press Load again each time you restart Photoshop.

Needs Photoshop 2023 (24.2) or newer.

Use

  1. Paste your crop onto the comp (Cmd+V or Ctrl+V). The new layer is selected.
  2. Press Align active layer. Or tick Align automatically on paste and skip this step from now on.
  3. A second later the layer sits where it belongs. The status line tells you the scale, the position and how sure it is (the match %).
  4. Not right? Cmd+Z or Ctrl+Z undoes the whole thing in one go.

Options

  • Smart object on every paste: every paste becomes a smart object straight away, whether you align it or not. Photoshop weirdly has no setting for this.
  • Align automatically on paste: aligns as soon as you paste, no button needed.
  • Convert to smart object first (on by default): turns the layer into a smart object before scaling, so you don't lose quality if you scale it again later.
  • Allow squeeze (on by default): width and height can scale separately, up to 15% apart. AI apps often return a crop at a slightly different aspect ratio (your 1.7:1 crop comes back as 16:9), and this stretches it back so it lines up. Turn it off for a strictly proportional scale, which is also a bit faster.
  • Match on edges: compares shapes instead of brightness. Use it when a result was restyled or regraded so much that the normal match fails.

If it isn't sure about the match, it leaves the layer alone and shows an Apply anyway button.

Fit to canvas and Fill canvas

Two extra buttons for when you don't want to align, you just want the thing to be the right size. Fit to canvas scales the selected layer until it fits inside the canvas, keeps its proportions and centres it. Fill canvas does the same but covers the whole canvas, cropping whatever sticks out. If the layer sits on an artboard, both use that artboard. It's the Fit Layer to Canvas script, now as a button in the panel.

Good to know

  • It does scale (with up to 15% squeeze) and position. No rotation and no warping yet.
  • The original still has to be there underneath, so paste on top of the comp you took the crop from.
  • Big flat or repeating areas (a clear sky, a tiled wall) can fool it, because they look the same in several places.
  • It pairs well with Tile Bridge: that one is for working on a part of your comp as its own tile, this one is for a quick crop you copied out by hand.

Questions

Does it work with crops from Magnific, Nano Banana or other AI apps?

Yes. Paste Align only looks at the pixels, so it does not matter where the crop was edited. It handles upscales at any size, and small changes in colour and brightness. If a result was restyled heavily, tick Match on edges.

Does it rotate or warp the crop?

No. It does scale and position, and it can squeeze the crop a little (width and height up to 15% apart) when an AI app returned it at a slightly different aspect ratio. Rotation and warping are next.

Can it just fit a layer to the canvas?

Yes. Select the layer and press Fit to canvas (fits inside, centred) or Fill canvas (covers it, crops the overflow). It works on artboards too, and it's one undo step.

Which Photoshop version do I need?

Photoshop 2023 (version 24.2) or newer, on Windows or Mac.

Can I make every paste a smart object?

Yes. Tick Smart object on every paste and every Cmd+V or Ctrl+V becomes a smart object straight away, whether you align it or not. Photoshop has no setting for that itself.

Free to use and share.