Skip to content
Bundle Free Audio Guides Find my key

Game art & UI · Photoshop

NineSlicer9-slice scaling inside Photoshop$14.99 SpriteExporterLayers to PNG without trimming$9.74 SpriteSheetLayers into a sprite sheet, and a sheet back into layersFREE PixelDropPixel art into Photoshop at its original sizeFREE

Motion · Illustrator · After Effects

VectorBridgeIllustrator paths into After Effects as real shape layers, and back again$14.99 DitherFactoryRetro dithering as a real effect: 27 algorithms, every parameter keyframableSOON

Audio · VST3 & AU

ComingAudio plug-ins are next

Bundle

Tools for PhotoshopNineSlicer + SpriteExporter$19.99
NineSlicer SpriteExporter VectorBridge SpriteSheet PixelDrop Bundle Audio Guides Find my key

Guides · 2026-10-02

Export Photoshop Layers as PNG Without Trimming (Keep Canvas Size)

You built a screen in Photoshop: a background, a panel, three buttons, a title. Every piece is on its own layer, exactly where it should be. You export them as PNGs and every file comes out cropped to its own pixels, so a button that sat at the bottom right of a 1920×1080 canvas is now a 220×80 image with no idea where it was.

For a single icon that's fine. For animation frames, UI pieces or anything you'll stack again in an engine or an editor, it means rebuilding the layout by hand. One Adobe Community thread on this, "Exporting multiple layers as PNG but keeping artboard dimensions", has over 87,000 views.

Here's how to keep canvas size and position, without buying anything, and then a faster way.

Why Photoshop crops your PNGs

Export As and Quick Export save the visible pixels and throw away the transparent space around them. Run them on layers (right-click a layer in the Layers panel) and each layer comes out at the size of its own artwork. There's no checkbox to turn that off.

A 96×96 canvas with three UI icons in different spots, and the three PNGs Export As saves: each one trimmed to its icon, the positions lost.
A 96×96 canvas with three UI icons in different spots, and the three PNGs Export As saves: each one trimmed to its icon, the positions lost.

Method 1: Layers to Files with "Trim Layers" off

This is the built-in answer and it works for most cases.

  1. Hide every layer you don't want exported. Layers to Files can skip hidden ones.
  2. Go to File > Export > Layers to Files.
  3. Pick the destination folder and, if you like, a File Name Prefix.
  4. Tick Visible Layers Only.
  5. Set File Type to PNG-24 and tick Transparency.
  6. Untick "Trim Layers". This is the setting that keeps every file at canvas size.
  7. Click Run and wait. It's a script, so on a big document it takes a while.

Every PNG now has the canvas size, and each layer sits exactly where it was.

Its limits:

  • File names get a number. Each file is the prefix, an index and then the layer name, like ui_0002_button-ok.png. If your engine or your code expects button-ok.png, you'll be renaming.
  • Groups aren't merged. A button made of three layers (base, icon, shadow) comes out as three files, not one button. To get it as one image you have to merge it first (Method 2).

Method 2: one group or layer at a time, exactly as you want it

Slower, but gives you one clean PNG of a whole group with the name you choose.

  1. Right-click the group (or layer) in the Layers panel and choose Duplicate Group…
  2. In Destination > Document, choose New and give it the name you want for the file.
  3. The new document has the same canvas size as the original, and the group is in the same position.
  4. In the new document, right-click the group and choose Merge Group, if you want it flat.
  5. File > Save a Copy, format PNG. The full canvas is kept, transparency included.
  6. Close the new document without saving and repeat for the next group.

Good for five pieces. For forty, it's an afternoon.

Method 3: the corner-pixel trick (use with care)

People in the forums keep Export As from trimming by making the layer reach the corners of the canvas:

  1. On the layer you want to export, add a single pixel in the top-left corner and one in the bottom-right corner.
  2. Set those pixels to a very low opacity, around 1%.
  3. Export As now sees artwork from corner to corner and keeps the full size.

It works, but those two pixels are really in your PNG. Almost invisible is not invisible: on a dark background, with additive blending or with an outline shader, they can show up. For final assets, prefer Method 1 or 2.

Or with SpriteExporter

SpriteExporter is a plug-in for Photoshop we made because we were doing Methods 1 and 2 every day on game UI and sprites. One panel, three choices:

  1. Choose the crop. Keep canvas size for frames and UI pieces, or Trim to artwork when you want each PNG as small as its content (with optional padding).
  2. Choose what leaves. Each visible layer, or each top-level group merged into one PNG. Optionally, only the groups you selected in the Layers panel.
  3. Pick a folder. The layer or group name becomes the file name, with a prefix only if you want one. Export at @1x or @2x in one pass, with nearest-neighbour scaling so pixel art stays sharp.
Six real exports from SpriteExporter with Keep canvas size, all 90×36: each piece sits where it was in the PSD.
Six real exports from SpriteExporter with Keep canvas size, all 90×36: each piece sits where it was in the PSD.

Hidden means hidden, including layers inside hidden groups, and your document is left exactly as it was. Duplicate names are handled: overwrite with a warning, or add _2, _3.

It's $9.74 and works in Photoshop 2023 (v24.0) and later, tested on Windows.

Quick answers

Can I keep position but lose the empty space? Not in one PNG: position is the empty space. If you need small files and positions, export trimmed and note each layer's x/y, or keep canvas size and let the engine pack the textures.

My exported PNG has a white background. Check Transparency is ticked and the file type is PNG-24, not PNG-8 with a matte colour.

The plug-in in this guide: SpriteExporter.

LACIMA Tools

Plug-ins for game art, UI, motion and, soon, audio. Made by a working game audio and UI designer.

Plug-ins

  • NineSlicer
  • SpriteExporter
  • VectorBridge
  • SpriteSheet
  • PixelDrop
  • Audio

Help

  • Find my key
  • Guides
  • Refunds
  • hello@lacimatools.com

Legal

  • Privacy
  • Terms
  • Refund policy
© 2026 LACIMA ToolsPrices in USD · taxes at checkout

Cart

Total$0.00