<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="/rss.xsl" type="text/xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>mogrify | 折腾啥</title><description>Power Users/Automators 折腾/讨论/分享各种开源工具/脚本/自动化工作流👥 @zhetengsha_group📌 合集 https://t.me/zhetengsha/2🎁 恰饭 https://t.me/zhetengsha/957📢 广告投放 @xream @xream_botBuy ads: https://telega.io/c/zhetengshafeedId:55438372655431680+userId:62307599601855488</description><link>http://telegram.zhetengsha.eu.org</link><item><title>#mac #magick #mogrify #imagemagick #webp #gif #mp4macOS 批量将 webp 转换为 gif, gif 转 mp41. 安装 homebrew2. 安装 brew install imagemagick3. brew info imagemagick 查看 路径例如 </title><link>http://telegram.zhetengsha.eu.org/posts/1223</link><guid isPermaLink="true">http://telegram.zhetengsha.eu.org/posts/1223</guid><pubDate>Wed, 13 Mar 2024 12:30:04 GMT</pubDate><content:encoded>&lt;a href=&quot;/search/result?q=%23mac&quot; title=&quot;#mac&quot;&gt;#mac&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23magick&quot; title=&quot;#magick&quot;&gt;#magick&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23mogrify&quot; title=&quot;#mogrify&quot;&gt;#mogrify&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23imagemagick&quot; title=&quot;#imagemagick&quot;&gt;#imagemagick&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23webp&quot; title=&quot;#webp&quot;&gt;#webp&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23gif&quot; title=&quot;#gif&quot;&gt;#gif&lt;/a&gt; &lt;a href=&quot;/search/result?q=%23mp4&quot; title=&quot;#mp4&quot;&gt;#mp4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;macOS 批量将 webp 转换为 gif, gif 转 mp4&lt;br /&gt;&lt;br /&gt;1. 安装 homebrew&lt;br /&gt;&lt;br /&gt;2. 安装 &lt;code&gt;brew install imagemagick&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;code&gt;brew info imagemagick&lt;/code&gt; 查看 路径&lt;br /&gt;&lt;br /&gt;例如 &lt;pre class=&quot;code&quot;&gt;&lt;code class=&quot;language-markdown&quot;&gt;
==&amp;gt; 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) *&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;得到路径 &lt;code&gt;/usr/local/Cellar/imagemagick/7.1.1-29_1&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;code&gt;cd /tmp/webp&lt;/code&gt; 此为你存放 webp 文件的目录&lt;br /&gt;&lt;br /&gt;5. 使用路径 webp 转 gif &lt;code&gt;/usr/local/Cellar/bin/imagemagick/7.1.1-29_1/&lt;mark class=&quot;highlight&quot;&gt;mogrify&lt;/mark&gt; -format gif *.webp&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;6. 安装 &lt;code&gt;brew install ffmpeg&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;7. gif 转 mp4 &lt;code&gt;for file in *.gif; do ffmpeg -i &quot;$file&quot; -movflags faststart -pix_fmt yuv420p -vf &quot;scale=trunc(iw/2)*2:trunc(ih/2)*2&quot; &quot;${file%.gif}.mp4&quot;; done&lt;/code&gt;</content:encoded></item></channel></rss>