如何使用ImageMagick将WebP文件转换为Linux(Ubuntu 22.04)终端中的JPG

发布于 2025-02-10 11:20:02 字数 1574 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风为裳 2025-02-17 11:20:02

我再次对此进行了测试,发现我需要:

sudo apt install build-essential pkg-config webp libwebp-dev libwebp7

然后,您需要按照源构建的剩余说明来源:

./configure
make -j 4

sudo make install
sudo ldconfig /usr/local/lib

I tested this again and found I needed:

sudo apt install build-essential pkg-config webp libwebp-dev libwebp7

Then you need to follow the remainder of the instructions to build from source:

./configure
make -j 4

sudo make install
sudo ldconfig /usr/local/lib
意中人 2025-02-17 11:20:02

假设您已安装了FFMPEG,FFMPEG对我来说非常有效,这是许多视频播放器和转换器应用程序的基础。如果不是:

sudo apt install ffmpeg

在Ubuntu和许多/其他大多数。
- BOB HARPER
我脚本脚本修复了许多WebP ...
---壳牌代码--------------------------------------------

#!/bin/bash

用于 *.webp中的文件; 完成

ffmpeg -i "$file" "${file/.webp}".jpg

在 *.webp中为

文件 ;完成

ffmpeg -i "$file" "${file/.WEBP}".jpg

了,

如果需要,请添加更多...

echo "========================================"
ls -als *.jpg
echo "========================================"
---end-code-------------------------------------

The ffmpeg worked perfectly for me, assuming you have ffmpeg installed, which is the basis of a lot of video players and converter apps. If not:

sudo apt install ffmpeg

on ubuntu and many/most others.
--Bob Harper
I scripted it to fix many webp's at one time...
---shell-code----------------------------------

#!/bin/bash

for file in *.webp; do

ffmpeg -i "$file" "${file/.webp}".jpg

done

for file in *.WEBP; do

ffmpeg -i "$file" "${file/.WEBP}".jpg

done

ADD more if needed...

echo "========================================"
ls -als *.jpg
echo "========================================"
---end-code-------------------------------------
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文