折腾啥 头像

消息来源频道

折腾啥

@zhetengsha

频道40,410 位成员公开可见0 人在线

Power Users/Automators 折腾/讨论/分享各种开源工具/脚本/自动化工作流 👥 群组 @zhetengsha_group 📌 资源合集导航 https://t.me/zhetengsha/2 🎁 恰饭推荐 https://t.me/zhetengsha/957 📢 广告投放 @xream Buy ads: https://telega.io/c/zhetengsha feedId:55438372655431680+userId:62307599601855488

成员规模40,410 位成员
在线情况0 人在线
消息总数4,340 条消息
浏览量总数7,753,402 次浏览

在这个频道里搜索消息……

t.me/zhetengsha

#mac #magick #mogrify #imagemagick #webp #gif #mp4
macOS 批量将 webp 转换为 gif, gif 转 mp4
1. 安装 homebrew
2. 安装 brew install imagemagick
3. brew info imagemagick 查看 路径
例如
==> imagemagick: stable 7.1.1-29 (bottled), HEAD
Tools and libraries to manipulate images in many formats
https://imagemagick.org/index.php
/usr/local/Cellar/imagemagick/7.1.1-29_1 (809 files, 29MB) *
得到路径 /usr/local/Cellar/imagemagick/7.1.1-29_1
4. cd /tmp/webp 此为你存放 webp 文件的目录
5. 使用路径 webp 转 gif /usr/local/Cellar/bin/imagemagick/7.1.1-29_1/mogrify -format gif *.webp
6. 安装 brew install ffmpeg
7. gif 转 mp4 for file in .gif; do ffmpeg -i "$file" -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)2:trunc(ih/2)*2" "${file%.gif}.mp4"; done