Neolithic Prancing Minotaurs

    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

    1

    Version

    2.2.0

    License

    MIT

    Unpacked Size

    9.79 kB

    Total Files

    10

    Last publish

    Collaborators

    • andrew_chou
    • substack
    • karissa
    • digidem-admin
    • gmaclennan
    • noffle