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
GET /[width/][height/][quality/]imageUrl or
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.