New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rf-api-thumbnail

Package Overview
Dependencies
Maintainers
7
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rf-api-thumbnail

API thumbnail service.

latest
Source
npmnpm
Version
0.5.2
Version published
Maintainers
7
Created
Source

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

  • License: MIT
  • Author: Rapidfacture GmbH

FAQs

Package last updated on 10 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts