Rotate & Flip
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
PreviewProxy supports rotating and flipping images as part of the transform pipeline.
Rotate
Section titled “Rotate”The rotate parameter rotates the image clockwise by the specified number of degrees.
Accepted values: 90, 180, 270
/r90/https://example.com/img.jpg| Value | Effect |
|---|---|
90 | 90 degrees clockwise |
180 | 180 degrees (upside-down) |
270 | 270 degrees clockwise (90 degrees counter-clockwise) |
The flip parameter flips the image along an axis.
Accepted values: h, v
/flip=h/https://example.com/img.jpg| Value | Effect |
|---|---|
h | Horizontal flip (mirror left-right) |
v | Vertical flip (upside-down) |
Combining Rotate and Flip
Section titled “Combining Rotate and Flip”Both parameters can be combined in a single request. The rotation is applied before the flip.
/r90,flipv/https://example.com/img.jpgCombining with Other Transforms
Section titled “Combining with Other Transforms”Rotate and flip can be combined with resize and format conversion in the same request.
/w=400,webp,r180/https://example.com/img.jpg/800x600,fliph,jpeg/https://example.com/img.jpg