{"repo":"unjs/ipx","free":true,"listed":false,"github":"https://github.com/unjs/ipx","clone":"git clone https://github.com/unjs/ipx.git","description":"🖼️ High performance, secure and easy-to-use image optimizer.","language":"TypeScript","stars":2445,"topics":["sharp","libvips","image","proxy","cdn","optimize","resize","webp","docker"],"license":"MIT","category":"networking-infra","readme_excerpt":"🖼️ IPX High performance, secure and easy-to-use image optimizer powered by sharp and svgo. Point IPX at a directory or a list of allowed domains, and every image is available in any size, format and quality straight from its URL: [!NOTE] This is the active development branch for IPX v4. Check out v3 for v3 docs, and release notes (alpha, beta) if you are upgrading. Quick Start Start a server for the images in the current directory with the ipx command: Using bun : Then open the printed URL and add modifiers to any image path, for example http://localhost:3000/w 200/buffalo.png . To embed IPX in your own app instead, see the Programmatic API. Image URLs A request URL is a list of modifiers, followed by the id of the source image: Multiple modifiers are separated by , and their arguments by . Use alone when no modifier is needed. URL Result -------------------------------------------------- ------------------------------------------------------------------------------------------- / /static/buffalo.png The original image. /w 200/static/buffalo.png Width set to 200 , original format ( png ) kept. /f webp/static/buffalo.png Format changed to webp , everything else kept as in the source. /f auto/static/buffalo.png Best format for the client (avif/webp/jpeg), negotiated from the browser's accept header. /s 200x200,fit contain,f webp/static/buffalo.png Resized to fit inside 200x200px on a background canvas and converted to webp . The URL style is configurable, see Custom URL Style.","default_branch":null,"files":null,"tree":[],"storefront":"/r/unjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/unjs/ipx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}