1 Star 0 Fork 2

雨雨雨/rust-vlog

forked from anruo/rust-vlog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
convert_to_png.sh 444 Bytes
一键复制 编辑 原始数据 按行查看 历史
yumin-wang 提交于 2020-02-05 18:59 +08:00 . 添加自动转换webp到png的脚本 。/
#!/bin/bash
files=`ls ./temp`
for f in $files
do
file_name=`echo $f | awk -F '.' '{ print $1 }'`
file_type=`echo $f | awk -F '.' '{ print $2 }'`
echo "file name: $file_name, file type: $file_type"
if [ "$file_type" != "webp" ]; then
continue
fi
png_name="./temp/$file_name.png"
if [ -f $png_name ]; then
rm -rf $png_name
fi
src_path="./temp/$f"
dwebp $src_path -o $png_name
done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Rust
1
https://gitee.com/crpa/rust-vlog.git
git@gitee.com:crpa/rust-vlog.git
crpa
rust-vlog
rust-vlog
master

搜索帮助