Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including vips-resizer with all npm packages installed. Try it out:

var vipsResizer = require("vips-resizer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

vips-resizer v2.2.0

Fast streaming image resizer API using libvips


Fast streaming image resizer API using libvips on node


git clone
cd vips-resizer
npm install


By default this will resize images from any domain. To only allow images from certain domains to be resized, pass a comma-separated list of whitelisted URLs from which to process images. E.g.

WHITELIST="," npm start


GET /[width/][height/][quality/]imageUrl or GET /[width/][height/][quality/]?url=imageUrl

Resize an image to fit within width and height at quality. If height is omitted it is the same as width. If quality is omitted the default is 70. If width, height and quality are omitted they default to MAX_WIDTH which is 4000px by default.

image_url should include the protocol e.g.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free