2
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?

環境

  • Linux Mint 21.1
    Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25
sudo apt-get install imagemagick

使用方法

convert input1.jpg input2.jpg input3.jpg output.pdf
convert *.jpg output.pdf

実行中のエラー

convert-im6.q16: DistributedPixelCache '127.0.0.1' @error/distribute-cache.c/ConnectPixelCacheServer/244.
convert-im6.q16: not authorized

エラー対応

いずれも/etc/ImageMagick-6/policy.xmlの変更を行う。

前 <policy domain="resource" name="memory" value="256MiB"/>
後 <policy domain="resource" name="memory" value="1GiB"/>
前  <policy domain="coder" rights="none" pattern="PDF" />
後
<!--
    <policy domain="coder" rights="none" pattern="PDF" />
-->

参考リンク

Linux で JPG 画像ファイルを PDF 形式に変換する方法
https://ja.linux-console.net/?p=9092

ImageMagickのconvertコマンドで「cache resources exhausted」エラーの解消方法 – myaNOTE
https://blog.myanote.com/post/529

ImageMagickでPNGをPDFに変換する
https://zenn.dev/yakumo/articles/702d816f8f8f4676a480ca4081627a8c

Linux環境設定/ImageMagickのconvertコマンドでエラーが出る場合の対処方法 - Linuxと過ごす
https://linux.just4fun.biz/?Linux%E7%92%B0%E5%A2%83%E8%A8%AD%E5%AE%9A/ImageMagick%E3%81%AEconvert%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%A7%E3%82%A8%E3%83%A9%E3%83%BC%E3%81%8C%E5%87%BA%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AE%E5%AF%BE%E5%87%A6%E6%96%B9%E6%B3%95

2
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
2
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?