0.5.2 • Published 9 months ago

rf-api-thumbnail v0.5.2

Weekly downloads
49
License
MIT
Repository
github
Last release
9 months ago

rf-api-thumbnail

Creates PNG Thumbnail picture from PDF files using gm. Takes a buffer or a stream from a PDF File and returns a PNG file buffer.

Getting Started

npm install rf-api-thumbnail

Create a Preview Pic

var services = require('rf-api-thumbnail').start();

// simple example
service.bufferToThumbnail(pdfBuffer, function(err, pdfPreviewPic){

})

// with rf-api
API.post('/pdf', function(req, res){

   // convert a pdf buffer from frontend
   Service.bufferToThumbnail(req.data, res.send);

})

Image utils

var services = require('rf-api-thumbnail').start();

// convert a tiff to a pdf
service.convertImageBuffer(tiffBuffer, 'PDF', function(err, pdfBuffer){

})

Development

Install the dev tools with

npm install

Then you can runs some test cases and eslint with:

npm test

Legal Issues

  • License: MIT
  • Author: Rapidfacture GmbH
0.5.2

9 months ago

0.5.1

3 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

5 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago