{"category":"image","endpoint":"https://setget.net/v1/tools/image-compress","examples":[{"input":{"image":"sample.jpg","quality":60},"title":"Compress a photo"},{"input":{"format":"webp","image":"sample.jpg","max_width":320,"quality":70},"title":"Smaller and narrower, as WebP"},{"input":{"image":"sample.gif"},"title":"Animated GIF to a smaller animated WebP"}],"input_schema":{"additionalProperties":false,"properties":{"format":{"description":"Format of the result. Leave empty to keep JPG, PNG, WebP and AVIF as they are; other formats such as GIF, BMP and TIFF become WebP.","enum":["jpg","png","webp","avif"],"type":"string"},"image":{"description":"The image to compress.","format":"setget-file","type":"string","x-accept":["image"]},"max_width":{"description":"Shrink the image to this width in pixels if it is wider. Smaller dimensions save the most space.","examples":[1600],"maximum":16000,"minimum":1,"type":"integer"},"quality":{"default":75,"description":"From 1 (smallest file) to 100 (best quality). 75 is a good balance for photos. For PNG, values below 100 reduce the number of colours.","maximum":100,"minimum":1,"type":"integer"}},"required":["image"],"type":"object"},"keywords":["compress","reduce file size","optimize","smaller","shrink","quality","image optimizer","compress jpg","compress png","tinypng","minify image"],"related":["image-compress-to-size","image-resize","image-convert","image-strip-metadata"],"slug":"image-compress","summary":"Make an image file smaller by re-encoding it at a chosen quality, with an optional maximum width.","tier":"job","timeout_seconds":180,"title":"Compress image","url":"https://setget.net/tools/image-compress"}
