Calculate an outside frame for a transparent product image
Admin ·
A listing template may require the entire framed image to fit a particular rectangle. Count both sides of the frame before choosing the source size.
Account for both sides
To frame a 600 × 400 image with 12 pixels on every side, set Border width to 12. The export is 624 × 424. Its source begins at coordinate (12, 12) on the new canvas.
Check the frame and interior
Choose a distinctive frame color. Compare the four outside strips and the central logo against a contrasting background. Holes in a transparent logo should still show the background. Save the result in PNG to retain that alpha channel.
W3C Portable Network Graphics specificationHTML Standard — canvas shapes, text and compositing
Reserve space inside a fixed upload size
A listing calls for a 640 × 480 image including an 8-pixel frame. Start with a 624 × 464 interior because the frame adds 16 pixels on each axis. Choose a crop with that interior ratio before adding the frame.
Open the exported file and inspect all four corners. If the total comes out as 656 × 496, the 640 × 480 measurement was applied to the interior. Resize the source copy and add the border again.
Common questions
Can I keep the original canvas size and still add a frame?
This tool adds a frame outside the source. For a fixed final size, resize the source first and reserve twice the border width on each axis.
What happens when I set zero width?
The output uses the source dimensions and has no colored frame. It is still exported as a new PNG.