1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS EC2でのwebp変換について ImageMagick

Last updated at Posted at 2021-01-24

環境:

AWS
EC2
centos7
最低限convert(ImageMagick)が動く (バージョンは6.8前後)

ImageMagickでwebpに変換する:

デフォルトでimagemagick(convert)でwebpに変換しようとすると

convert: delegate failed `'cwebp' -quiet %Q '%i' -o '%o'' @ error/delegate.c/InvokeDelegate/1928.

とエラーになる。

知ってる人には当たり前の知識っぽいが、convertの中は単に外部ライブラリを呼んでるだけっぽいので手動でcwebpをインストールしてやる。

yum install libwebp-tools -y

yumすら入っていない場合は論外

これでconvertでwebpに変換出来る

convert a.png a.webp

追伸:

よく見かけるフォーマット確認コマンドを打っても何故か相変わらずwebpは見つからない・・・

convert -list format | grep -i webp
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?