{"category":"image","endpoint":"https://setget.net/v1/tools/image-resize","examples":[{"input":{"image":"sample.jpg","width":320},"title":"Scale to 320 pixels wide"},{"input":{"fit":"cover","height":200,"image":"sample.jpg","width":200},"title":"Fill a 200 x 200 square"},{"input":{"image":"sample.gif","width":80},"title":"Shrink an animated GIF"}],"input_schema":{"additionalProperties":false,"properties":{"fit":{"default":"contain","description":"Used when both width and height are given. contain fits inside the box and keeps the proportions, cover fills the box and crops the overflow, stretch forces the exact size.","enum":["contain","cover","stretch"],"type":"string"},"format":{"description":"Format of the result. Leave empty to keep the format of the upload.","enum":["png","jpg","webp","avif","gif","bmp","tiff","ico"],"type":"string"},"height":{"description":"New height in pixels. Leave empty to work it out from the width.","examples":[300],"maximum":16000,"minimum":1,"type":"integer"},"image":{"description":"The image to resize.","format":"setget-file","type":"string","x-accept":["image"]},"upscale":{"default":false,"description":"Allow the image to be made larger than it is. Off by default, because enlarging makes images blurry.","type":"boolean"},"width":{"description":"New width in pixels. Leave empty to work it out from the height.","examples":[400],"maximum":16000,"minimum":1,"type":"integer"}},"required":["image"],"type":"object"},"keywords":["resize","scale","shrink","enlarge","dimensions","pixels","width","height","downscale","resize gif"],"related":["image-thumbnail","image-crop","image-compress","image-convert"],"slug":"image-resize","summary":"Resize an image to a width, a height or both, keeping its proportions, cropping to fill, or stretching.","tier":"job","timeout_seconds":120,"title":"Resize image","url":"https://setget.net/tools/image-resize"}
