1.0.2 • Published 7 years ago

imagemin-helper v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

imagemin-helper

Optimizing images with imagemin libraries

Supported input images formats - JPG and PNG

Functions

lite(imagePath, outputDir) ⇒ Object

lite - for quick optimization

Kind: global function

ParamTypeDescription
imagePathStringabsolute path of the image
outputDirStringoptional absolute path of the output directory. If omitted the image will be overwritten

main(imagePath, outputDir) ⇒ Object

main - detailed image optimization

Kind: global function

ParamType
imagePathString
outputDirString

webp(imagePath, destination) ⇒ Boolean | Error

webp - Generating Webp image from JPG or PNG image

Kind: global function

ParamTypeDescription
imagePathString
destinationStringif ommitted, Webp file will be placed in the directory of the {imagePath}