Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
node-plan plugin for generating a thumbnail of a picture
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
README.md
index.js
package.json

README.md

See node-plan.

Backend is node-imagemagick.

additional dependencies

  • requires imagemagick CLI tools to be installed

input

  • tempPath - image to generate a thumbnail for
  • makeTemp - a function which generates a tempfile and accepts a suffix

output

  • tempPath - path to the generated thumbnail

options

  • format - what format to save in, such as 'jpg'. defaults to 'png'.
  • quality - between 0 and 1. only applies for some formats.
  • progressive - boolean
  • width - width of thumbnail
  • height - height of thumbnail
  • strip - boolean
  • filter
  • sharpening
  • gravity - one of ['NorthWest', 'North', 'NorthEeast', 'West', 'Center', 'East', 'SouthWest', 'South', 'SouthEast']
  • crop - boolean

exports

none

Something went wrong with that request. Please try again.