{"category":"image","endpoint":"https://setget.net/v1/tools/image-rotate-flip","examples":[{"input":{"angle":90,"image":"sample.jpg"},"title":"Quarter turn clockwise"},{"input":{"flip":"horizontal","image":"sample.png"},"title":"Mirror left to right"},{"input":{"angle":15,"background":"#ffffff","image":"sample.png"},"title":"Tilt 15 degrees on white"}],"input_schema":{"additionalProperties":false,"properties":{"angle":{"default":0,"description":"Degrees to turn the image clockwise. Use a negative number to turn it anticlockwise.","examples":[90],"maximum":3600,"minimum":-3600,"type":"number"},"background":{"default":"transparent","description":"Colour for the empty corners left by a turn that is not a quarter turn. transparent becomes white in formats without transparency, such as JPG. A hex colour such as #ff8800, or a name such as white or black.","examples":["#ffffff"],"type":"string"},"expand":{"default":true,"description":"Grow the canvas so the whole turned image fits. Turn off to keep the original size and cut off the corners. Quarter turns always keep the whole image.","type":"boolean"},"flip":{"default":"none","description":"Mirror the image after rotating: horizontal swaps left and right, vertical swaps top and bottom.","enum":["none","horizontal","vertical"],"type":"string"},"image":{"description":"The image to rotate or flip.","format":"setget-file","type":"string","x-accept":["image"]}},"required":["image"],"type":"object"},"keywords":["rotate","flip","mirror","turn","upside down","90 degrees","sideways","straighten","orientation"],"related":["image-crop","image-strip-metadata","image-pad","image-resize"],"slug":"image-rotate-flip","summary":"Rotate an image by any angle and flip it horizontally or vertically. Quarter turns keep every pixel exact.","tier":"job","timeout_seconds":120,"title":"Rotate and flip image","url":"https://setget.net/tools/image-rotate-flip"}
