0
0

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.

convertコマンドでエラー

Posted at

概要

最近はスマホの画質もよくなってきて画像のファイルサイズもだいぶ大きくなってきましたよね。。。
特にiPhoneだとなぜか拡張子がheicファイルとなっててブログに記事を書くときとかjpgにしたかったりします。
そんな時に写真が大量にあるならImageMagickで変換したくなります。
convertコマンドを実行したら下記のエラーが。

convert-im6.q16: cache resources exhausted

このエラーはどうやらメモリ不足が原因のようなので、
メモリをあげます。
下記のファイルを開きます。
/etc/ImageMagick-6/policy.xml

メモリの記述のある下記を適当な値に変更します。

<policy domain="resource" name="memory" value="256MiB"/>

ここvalue値を4GiBなど適当な値に変更します。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?