Stretching and keeping the shape
A picture is a grid of pixels. Stretching gives it a new width and a new height, and the pixels are resampled to fit. If the two sides are scaled by different amounts the shape changes: a picture 1000 pixels wide and 500 high, stretched to 2000 by 500, is twice as wide and no higher, and everything in it is twice as wide too.
With Keep the shape on, setting one side sets the other in proportion, rounded to a whole pixel: a 1600 × 900 picture set to 800 wide becomes 800 × 450. The tool shows how much each side is stretched and says when the shape changes.
What we measured
On 2 December 2026 we ran this page's tool in Chromium, downloaded the PNG files and read them back pixel by pixel.
| Test | Result |
|---|---|
| A 1000 × 500 picture with a circle, width set to 2000 | A PNG of 2000 × 500; the tool said width ×2, height ×1 and that the shape changes; the circle became an ellipse of 398 × 200 pixels |
| The same picture, Keep the shape on, width set to 500 | The height followed to 250; the tool said the shape is kept; the circle stayed a circle, 100 × 100 pixels |
| A transparent PNG, 600 × 300, stretched to 1200 × 450 | A PNG of 1200 × 450; away from the edges between the areas, every fully transparent pixel stayed transparent, every opaque one stayed opaque and every half-transparent one stayed within 1 of half |
| A width of 99999 with the shape kept | The tool stopped at a width of 16,384 and said the picture is too large: it makes sides of up to 16,384 pixels and at most 64 million pixels |
Stretch or extend: what FlowPix's Expand offers
If you want a picture in a different shape without changing what is in it, stretching is the wrong tool; crop it, or extend it. In FlowPix's canvas, select a picture and choose Expand in the toolbar. The panel offers a shape, a scale and a box to describe what you want in the new area, and the default text is “Extend the image seamlessly”.
The code sets Expand to ask for the new picture at FlowPix's 1K setting, a long side of about 1024 pixels. We have not run Expand for this page, so we do not say what the result looks like or whether the original area stays as it was.
| Expand setting | Choices |
|---|---|
| Shape | Original, 1:1, 3:4, 2:3, 9:16, 4:3, 3:2, 16:9, 4:5, 5:4 |
| Scale | 1×, 1.5×, 2× |
| New area | A box: “Describe what you want in the new area...” |