Docs: clarify which axis is used when mirroring

This commit is contained in:
Lovell Fuller
2023-05-11 10:24:24 +01:00
parent 5255964c79
commit e873978e53
4 changed files with 11 additions and 7 deletions

View File

@@ -57,7 +57,8 @@ const resizeThenRotate = await sharp(input)
## flip
Flip the image about the vertical Y axis. This always occurs before rotation, if any.
Mirror the image vertically (up-down) about the x-axis.
This always occurs before rotation, if any.
The use of `flip` implies the removal of the EXIF `Orientation` tag, if any.
@@ -73,7 +74,8 @@ const output = await sharp(input).flip().toBuffer();
## flop
Flop the image about the horizontal X axis. This always occurs before rotation, if any.
Mirror the image horizontally (left-right) about the y-axis.
This always occurs before rotation, if any.
The use of `flop` implies the removal of the EXIF `Orientation` tag, if any.

File diff suppressed because one or more lines are too long