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:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Fast streaming image resizer API using libvips on node
git clone https://github.com/digidem/vips-resizer 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="mydomain.com,s3.amazonaws.com/mybucket" npm start
Resize an image to fit within
height is omitted it is the same as
quality is omitted the default is
quality are omitted they default to
MAX_WIDTH which is 4000px by default.
image_url should include the protocol e.g.