npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript.Learn more »

vips-resizer

2.2.0 • Public • Published

vips-resizer

Fast streaming image resizer API using libvips on node

Install

git clone https://github.com/digidem/vips-resizer
cd vips-resizer
npm install

Start

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

API

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. http://example.com/myimage.jpg

install

npm i vips-resizer

Downloadsweekly downloads

0

version

2.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability