Skip to content

Commit

Permalink
优化重置图片大小
Browse files Browse the repository at this point in the history
  • Loading branch information
yinchi.li committed Jul 1, 2020
1 parent b6d07fd commit a83093c
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 2 deletions.
Binary file added ImageDownload/image/图片1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ImageDownload/image/图片2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ImageDownload/image/图片3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Made/output/format.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Made/output/format.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ node ImageDownload/download -h

#### (1)命令行输入
```bash
node Resize/resize -i "Resize/image/resize.jpg" -w 1000 -h 2000
node Resize/resize -i "Resize/image/resize.jpg" -w 1000 -e 2000
```
![img](./static/demo/resize2.jpg)

Expand Down
Binary file added Resize/output/resize.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Resize/resize.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var outputImage;program
.version('1.0.0')
.option('-i, --inputImage [type]', '被修改图片存放位置', "Resize/image/resize.jpg")
.option('-w, --width [type]', '宽(单位:像素)', 200)
.option('-e, --height [type]', '图片存放位置', 200)
.option('-e, --height [type]', '高(单位:像素)', 200)
.option('-o, --outputImage [type]', '被修改后的图片存放位置', "Resize/output/resize.jpg")
.parse(process.argv);
console.log(chalk.green.bold('params:'));
Expand Down
Binary file added WaterMake/output/watermarked.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added WaterMake/output/watermarked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a83093c

Please sign in to comment.