Newlyweds Proposing Marriage
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

imagemin-helper

1.0.2 • Public • Published

imagemin-helper

Optimizing images with imagemin libraries

Supported input images formats - JPG and PNG

Functions

lite(imagePath, outputDir)Object

lite - for quick optimization

main(imagePath, outputDir)Object

main - detailed image optimization

webp(imagePath, destination)Boolean | Error

webp - Generating Webp image from JPG or PNG image

lite(imagePath, outputDir) ⇒ Object

lite - for quick optimization

Kind: global function

Param Type Description
imagePath String absolute path of the image
outputDir String optional absolute path of the output directory. If omitted the image will be overwritten

main(imagePath, outputDir) ⇒ Object

main - detailed image optimization

Kind: global function

Param Type
imagePath String
outputDir String

webp(imagePath, destination) ⇒ Boolean | Error

webp - Generating Webp image from JPG or PNG image

Kind: global function

Param Type Description
imagePath String
destination String if ommitted, Webp file will be placed in the directory of the {imagePath}

Keywords

install

npm i imagemin-helper

Downloadsweekly downloads

9

version

1.0.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar