How to use
- Flip bars-32x16.png horizontally and expect the blue half at the left edge.
- Flip vertically and expect the red half to stay on the left.
- Keep the 32 by 16 grid either way.
Formula / how it works
A horizontal flip of bars-32x16.png exchanges the halves. The corner that was red, near 220, 30, 30, is no longer at x 0. The corner at x 0 is the blue that used to be on the right, near 20, 40, 200. The size stays 32 by 16. A vertical flip keeps the red on the left, because left and right do not move. The top row and the bottom row exchange, and on these flat bars that is the same colour.
The download is PNG. GIF frames after the first are not flipped as a film. Metadata is not copied. The source file is not replaced.
Use the rotator when the whole picture should sit on its side. Use this page when a selfie or a scan is mirrored and the pixel grid should stay the same shape.
Horizontal flip puts the blue half, near 20, 40, 200, on the left edge. Vertical flip leaves the red half, near 220, 30, 30, on the left edge, because left and right stay put. Both results are 32 by 16. One decoded GIF frame would flip. An animation would not. The source file stays put. A quarter turn is the rotator, and that swap of axes is a different result from either of these mirrors.
Look at x 0 after the flip, not at the filename. Horizontal means that corner is blue. Vertical means that corner is still red. The height stays 16 and the width stays 32 in both downloads. A mirrored selfie is the horizontal case. A scan that was fed in upside down and only needs top and bottom swapped is the vertical case, and it will not also mirror the text. The original bars file is still the unflipped one on disk.
Blue on the left means the horizontal flip happened. Red on the left means the vertical flip left the sides alone. Both files stay 32 by 16. That pair of corner colours is the check, and it is specific to these bars. A photo will not show a red half and a blue half. It will show a mirrored face or a top-bottom swap. The original file is not replaced. One GIF frame would flip. A film would not.
Name the horizontal download differently from the vertical one. They are both 32 by 16, so the filename is how you will tell them apart tomorrow. The corner colour is how you tell them apart today. Blue means mirrored. Red on the left means only the vertical exchange. Neither file is the untouched bars.
A quarter turn is image rotator. The red and blue halves side by side started as combine images only if you joined two files. These bars are one file.
Worked examples
Horizontal flip of the bars
Inputs: ifl-f: bars-32x16.png | ifl-dir: horizontal
On this page, take bars-32x16.png, then horizontal and press Flip. Horizontal moves the blue half to the left edge.
Result: Flipped horizontal: 32×16 PNG. 0.1 KB
Vertical flip of the bars
Inputs: ifl-f: bars-32x16.png | ifl-dir: vertical
On this page, take bars-32x16.png, then vertical and press Flip. Horizontal moves the blue half to the left edge.
Result: Flipped vertical: 32×16 PNG. 0.1 KB
Use cases
- Mirroring a scan left to right.
- Exchanging top and bottom without a left-right mirror.
- Checking the corner colour instead of trusting the word flip.
- Leaving animations as a single decoded frame.
Tips & limitations
- Horizontal puts blue, near 20, 40, 200, at x 0.
- Vertical leaves red, near 220, 30, 30, at x 0.
- Size stays 32 by 16.
- The source file is not replaced.
FAQ
What colour is the left edge after a horizontal flip?
Blue, near 20, 40, 200. That half used to be on the right.
What colour is the left edge after a vertical flip?
Still red, near 220, 30, 30. Left and right do not move.
Does the grid change size?
No. Both results are 32 by 16 PNG files.
Is a GIF film flipped frame by frame?
No. One decoded frame is flipped.
Is metadata copied?
No. Only the pixels are drawn.
Is the original overwritten?
No. The download is a new PNG.
The blue-at-the-left result is a horizontal flip of bars-32x16.png. A photo will not show those two flat halves.