代码拉取完成,页面将自动刷新
批量图片等比缩放、类型转换工具
ImgResizer -source {source} -dest {dest} -mode {mode}
-dest string
Destination file or directory
-format string
Output format
Supported values: png|jpg|jpeg|bmp|tiff|gif
Omit to keep original format
-height int
Destination height
Omit to keep original height (default -1)
-help
Show help message
-mode int
0 - (Default) Nearest-neighbor interpolation
1 - Bilinear interpolation
2 - Bicubic interpolation
3 - Mitchell-Netravali interpolation
4 - Lanczos resampling with a=2
5 - Lanczos resampling with a=3
-source string
Source file or directory
-width int
Destination width
Omit to keep original width (default -1)
-format
参数-width
和 -height
参数ImgResizer -source ~/pics -dest ~/new_pics -mode 5 -height 128 -width 300
ImgResizer -source ~/pics/hello.gif -dest ~/newpics/wow.gif -width 900
ImgResizer -source ~/pics -dest ~/new_pics -format jpg
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型