skip to Main Content

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)

2

Answers


  1. 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
    
    Login or Signup to reply.
  2. 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-------------------------------------
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search