Skip to main content
Pad an image with a solid color or a mirrored copy of its edges. The padding can be set as exact pixels on each side, as a size multiplier, or as the smallest amount that makes the width and height divisible by a number, which is handy before saving or tiling. The original image keeps its place: left and top padding is added before it, right and bottom after it.

Inputs

"mirror image" reflects the image edges rather than filling them with a color. The edge pixel is not repeated, and when the padding is wider or taller than the image itself the mirrored image repeats to cover the rest. When every padding amount works out to 0, the input image is returned unchanged.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): 9373cd6aa287befba74374b9b2a6c38b20344b5715e9aaa4cf49282ae930c91d