Skip to content

jaeh/imagemin-sharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imagemin-sharp

only works on unix. no windows version of sharp exists.

use sharp to resize images.

if you need to resize images on all operating systems have a look at: imagemin-jimp

NPM version Linux Build Status Coverage Status Greenkeeper badge

install

!!! DOES NOT WORK ON WINDOWS !!!
npm install --save imagemin-sharp

usage

const sharpOptions = {
  width: 500,
  height: 500,
  // config will be used as the sharp options object,
  // see https://sharp.pixelplumbing.com/en/stable/api-constructor/
  config: {
    withoutEnlargement: true
  },
}

imagemin(input, output, {
  plugins: [
    imageminSharp(sharpOptions),
  ],
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published