1.0.6 • Published 7 years ago

peter-generator v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Peter is a dead simple thumbnail generator for your node app, using sharp.

Installation

To install the latest version:

yarn add peter-generator

Or if you are using npm:

npm install --save peter-generator

Let’s Get Started!

Adding the library to your project is that easy!

import { ThumbnailGenerator } from 'peter-generator'

const gen = new ThumbnailGenerator()
gen.generate(imgBuffer)
    .then(resBuffer => {
        // Handle result
    })

You can pass options to improve the quality/performance of the generation:

new ThumbnailGenerator({
   sizeLimit: '200kB',
})

You can find more information here.

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago