The source image is not enlarged
Output width is source width + 2 × (padding + border), with the same formula for height. With 40 px padding and a 4 px border, 44 px is added on every side.
Unlike resizing, the source pixels are drawn at their original dimensions in the center.
Padding and border do different jobs
The border is the outermost band. Padding sits between the border and the source image. Border 0 gives you plain whitespace; padding 0 puts the border directly around the source.
That makes it easy to create combinations such as white breathing room with a thin colored line around the outside.
Very large canvases can exhaust browser memory
Image memory usage depends more on decoded pixel dimensions than on the compressed file size. v1.49 enforces 0–2000 px padding, 0–500 px borders, and stops outputs above 50 megapixels.
For unusually large print layouts, calculate the target size first and use a desktop editor rather than forcing a huge browser canvas.
The added area is filled, not transparent
The tool paints the entire canvas with border and background colors before placing the source image, so the added area is not transparent even when you choose PNG.
If you need transparent padding, use an editor that supports a transparent canvas. For format choices, see Image format guide.