{"category":"image","endpoint":"https://setget.net/v1/tools/gif-optimize","examples":[{"input":{"colors":32,"image":"sample.gif"},"title":"Reduce to 32 colours"},{"input":{"colors":64,"drop_frames":2,"image":"sample.gif","scale":50},"title":"Half size, every second frame"}],"input_schema":{"additionalProperties":false,"properties":{"colors":{"default":128,"description":"Colours in the result, 2-256. Fewer colours make a smaller file.","maximum":256,"minimum":2,"type":"integer"},"drop_frames":{"default":1,"description":"Keep every Nth frame: 1 keeps all, 2 keeps every second frame. Kept frames are shown longer, so the animation runs at the same speed.","maximum":20,"minimum":1,"type":"integer"},"image":{"description":"The GIF to shrink.","format":"setget-file","type":"string","x-accept":["image"]},"scale":{"default":100,"description":"Size of the result as a percentage of the original width and height.","maximum":100,"minimum":5,"type":"integer"}},"required":["image"],"type":"object"},"keywords":["gif optimizer","compress gif","shrink gif","reduce gif size","gif compressor","smaller gif","gif colours","optimise gif"],"related":["gif-speed-reverse","animated-convert","gif-split-frames","image-compress"],"slug":"gif-optimize","summary":"Shrink an animated GIF by using fewer colours, a smaller size or fewer frames, and see how much was saved.","tier":"job","timeout_seconds":300,"title":"Optimize an animated GIF","url":"https://setget.net/tools/gif-optimize"}
