简体   繁体   中英

How do I use ImageMagick to convert webp file(s) to jpg in Linux (Ubuntu 22.04) terminal

I'm trying to convert a file with the magick command-line tool but I'm confused about what the error means and how to fix it.

I used the following code syntax:

magick <input>.webp <output>.jpg

I get this error:

magick: delegate failed `'dwebp' -pam '%i' -o '%o'' @ error/delegate.c/InvokeDelegate/1911.
magick: unable to open file '/tmp/magick-PGSTH7P1-9rGkrCgVJrwRyuTCjBoRkrJ': No such file or directory @ error/constitute.c/ReadImage/780.

The file I'm converting is in my current directory, and I'm not using a filename for which is already being used in the directory. I've made sure my spellings are correct, and my file types are correct as well.

There were no errors during installation either:

Testsuite summary for ImageMagick 7.1.0-40

I'm running this on a Virtual Machine (Ubuntu 22.04)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM