Move a repeating motif without changing the canvas size
Admin ·
A tiled image has two sizes: the repeated tile and the finished canvas. Adjust the offset to set where the repeat lands at the canvas edge.
Tile the practice motif at twice its width
Select Load example. The source is 4 × 2 pixels. The example uses an 8 × 2 tile, a 10 × 5 output and one-pixel offsets in both directions.
Select Tile image. In the exported PNG the upper-left pixel is gray because it comes from the bottom-right of the previous tile. The second row begins with white from the top-right of the previous tile.
| Output location | Expected RGBA |
|---|---|
| First row, first column | 128, 128, 128, 255 |
| Second row, first column | 255, 255, 255, 255 |
| Second row, second and third columns | 255, 0, 0, 255 |
| First row, sixth and seventh columns | 18, 37, 92, 0 |
WHATWG HTML Standard, repeated image patternsW3C Portable Network Graphics Third Edition, alpha
Move the repeat without resizing its tile
Set the horizontal and vertical offsets to zero. The result stays 10 × 5 pixels. Its upper-left pixel now starts at the source’s upper-left corner, and the repeat begins again in column nine.
With a positive offset, the first complete tile starts farther right or down. A partial tile from the previous repeat fills the space before that start.
Choose a size that fits the pattern
Clear both tile dimension fields to repeat the original decoded size. Enter one or both dimensions to resize a repeat. This workspace chooses the nearest source pixel to each destination sample, which keeps hard edges and can drop fine detail when shrinking.
If you need whole tiles, set the output width and height to multiples of the tile dimensions and use zero offsets. For artwork with transparency, inspect the saved PNG over a background to see where the gaps appear.
WHATWG HTML Standard, image smoothing and nearest-neighbor scalingW3C Portable Network Graphics Third Edition, alpha
Common questions
Does changing output width stretch the tile?
Output width crops the repeated pattern to a new extent. Change the tile width field when the motif itself should become wider.
Does the workspace blend adjacent tiles?
Each output pixel comes from one sampled source pixel. Transparent values in the original repeat with the same alpha.