@mayd/minify
v2.2.0
Published
Minifier library, mainly used for resizing and minifying images.
Maintainers
Keywords
Readme
Minifier for Mayd
Minifier library, mainly used for resizing and minifying images.
Minifiers
Images
Usage:
node_modules/.bin/mayd-minify image <src> <dest> [--width 100] [--height 100]Arguments:
<src>is the source image file<dest>is the destination file, where the result will be written to. It will automatically overwrite an existing file.
Options:
--width <value>: will set the maximum width of the image.<value>must be an integer > 0.--height <value>: will set the maximum height of the image.<value>must be an integer > 0.
The image will automatically fit into the given square, if it can be resized. So the final image size is not guaranteed. The command will return the final image dimensions.
Supported file formats
png: resize + minify supportjpeg: resize + minify supportgif: minify support (incl. animated GIFs)
