Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

webcaetano/img-resize-cli

Repository files navigation

img-resize-cli

NPM version Build status

Image resize cli using jimp

Installation

npm install img-resize-cli --save

CLI

npm install img-resize-cli -g
Usage
	$ rsize <glob>
Options
	--porcent image porcentage resize
	--width new image width, (numbers or auto)
	--height new image height, (numbers or auto)
	--algo resize algorithm, default: bilinear
	algorithms: bilinear | neighbor | bicubic | hermite | bezier
Examples
	rsize "**/*.png" "destFolder/" --porcent 50
	rsize "**/*.png" "destFolder/" --width 100
	rsize "**/*.png" "destFolder/" --width 100 --height 100
	rsize "**/*.png" "destFolder/" --width 100 --height auto
	rsize "**/*.png" "destFolder/" --porcent 25 --algo bicubic

Options

Option Description Default
porcent Image porcentage resize 75
width new image width, (numbers or auto) null
height new image height, (numbers or auto) null
algo resize algorithm
algorithms: bilinear | neighbor | bicubic | hermite | bezier bilinear

Node Usage

rsize(src,dest,options)

Example

var rsize = require('img-resize-cli');
// width porcent
rsize(src,dest,{
	porcent:'50%'
},function(err,data){
});
// width dimensions
rsize(src,dest,{
	width:100,
	height:100, 
},function(err,data){
});
// full options 
rsize(src,dest,{
	width:'50%',
	height:'auto', 
	alog:'bicubic', 
},function(err,data){
});

License

MIT

About

Image resize cli using jimp

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /