Photopea Fit Canvas to Image: How to Size the Canvas Around Your Logo
Fit the Photopea canvas to your logo artwork with Reveal All, Trim or Canvas Size, then check the result before exporting for digital or print use.
Contents
The short answer
To fit the canvas to your image in Photopea, work from the Image menu. If artwork extends past the canvas edges, Reveal All enlarges the canvas until every layer is visible. Trim then removes empty, transparent margins so the canvas edges sit tight against the visible artwork. For a specific size, or a controlled margin around a logo, set the dimensions yourself in Canvas Size.
The canvas is the document's working area: its width and height define what gets exported. Changing the canvas is not the same as scaling the image. Canvas commands add or remove space around your artwork, while Image Size resamples the artwork itself. For logo work, change the canvas, not the image, unless you intend to resize the mark.
Which command fits your situation
| Situation | Command in the Image menu | What it does |
| Artwork is cut off at the canvas edges | Reveal All | Expands the canvas to include all layer content outside the current bounds |
| Artwork has too much empty space around it | Trim | Removes transparent pixels (or pixels matching a chosen corner color) from the edges |
| You need exact dimensions or a set margin | Canvas Size | Adds or removes space by values you enter, anchored where you choose |
| You want only part of the artwork | Crop (with an active selection) | Cuts the canvas down to the selected area |
Photopea follows Photoshop's naming for most of these commands, but menu labels and placement can change between versions. Some versions may also offer a single command that fits the canvas to all layers in one step. If a label below doesn't match what you see, look for the equivalent command in the Image menu.
Step by step: fit the canvas tightly to a logo
- 1. Open the logo file in Photopea and check the Layers panel. Make sure every part of the logo is on a visible layer.
- 2. If the background is a solid fill you don't want, hide or delete that layer so the area around the logo is transparent. Trim works most predictably on transparency.
- 3. Choose Image > Reveal All if any part of the artwork extends beyond the canvas. Skip this if everything is already inside the canvas.
- 4. Choose Image > Trim. Base it on transparent pixels and enable all four edges (top, bottom, left, right).
- 5. Confirm. The canvas now ends at the outermost visible pixels of the logo.
Step by step: add a consistent margin
A logo trimmed flush to its edges can look cramped when placed on a page or screen. Many brand guidelines define clear space, an empty zone around the mark that other elements should not enter. If a guideline exists for the logo, follow its stated clear space. If not, how much margin to add is a design judgment, not a fixed requirement.
- 1. Trim the canvas first so you start from the artwork's true bounds.
- 2. Open Image > Canvas Size.
- 3. Turn on the relative option so the values you enter are added to the current size rather than replacing it.
- 4. Enter the same amount for width and height to get an even margin. Choose units that suit the destination: pixels for screen, a physical unit for print.
- 5. Set the anchor to the center so space is added equally on all sides.
- 6. Confirm, then check that the canvas extension color is transparent if you need a transparent background.
How canvas changes affect vector logo content
Photopea is mainly a raster (pixel-based) editor, but it can hold vector shape layers. These are shapes defined by paths, meaning mathematically described lines and curves, so they stay sharp at any size. Resizing the canvas does not change path geometry; it only changes the frame around it. Trim and Reveal All calculate bounds from what is visibly rendered, so effects such as shadows or strokes that extend past the path are counted as part of the artwork.
Opening a file with a vector extension such as SVG, PDF or EPS does not guarantee it contains only editable vector paths. It may hold embedded raster images, or it may be flattened on import. Check the Layers panel to see what you are working with. The file format also says nothing about whether you have permission to modify or reuse the logo; confirm that separately.
Verify the result before exporting
- Zoom in on each edge and confirm that no part of the logo, including thin strokes, anti-aliased edges (the softened pixels along curves) or effects, has been clipped.
- Check the document dimensions to confirm they match what the destination requires.
- Toggle the transparency grid or add a temporary contrasting layer underneath to see exactly where the artwork ends and the canvas begins. Delete the test layer before exporting.
- For raster export (PNG for transparency, JPG for opaque backgrounds), confirm that the pixel dimensions are large enough for the intended use.
- If you need a scalable file, export to a vector format and reopen it to confirm that the paths survived. Effects and raster layers may not convert to vector.
Information gaps
No version-specific Photopea documentation was available for this guide. The command names and behavior described here reflect Photopea's general Photoshop-compatible workflow and may differ slightly in your version. No specific dimensions, margins or export settings are recommended here, because those depend on the destination and any brand guidelines that apply to the logo.