High performance, secure and easy to use image proxy based on Sharp and libvips.
High performance, secure and easy to use image proxy based on sharp and libvips.
You can use ipx command to start server using:
$ npx ipx
You can use IPX as a Connect/Express middleware or directly use ipx api.
import { createIPX, createIPXMiddleware } from 'ipx'
const ipx = createIPX(/* options */)
const app = express()
app.use('/image', createIPXMiddleware(ipx))
Change format to webp and keep other things same as source:
http://cdn.example.com/static/buffalo.png?format=webp
Keep original format (png) and set width to 200:
http://cdn.example.com/static/buffalo.png?width=200
Resize to 200x300px using embed method and change format to webp:
http://cdn.example.com/static/buffalo.png?embed&format=webp&size=200x300
Config can be customized using IPX_* environment variables.
IPX_DIR
. (current working directory)IPX_DOMAINS
[]MIT
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.