Help us understand the problem. What is going on with this article?

pdfを画像化する

More than 5 years have passed since last update.

tl;dr

convert input.pdf out.png
#=> out-0.png, out-1.png, out-2.png, ... , out-50.png 

準備

ImageMagickとGhostscriptをインストールしている必要がある。

brew install gs imagemagick

unable to load module

こういうエラーでうまくいかない場合は brew upgrade imagemagick するとうまくいくかも。

convert: unable to load module `/usr/local/Cellar/imagemagick/6.8.7-0/lib/ImageMagick//modules-Q16/coders/png.la': file not found @ error/module.c/OpenModule/1276.
convert: no decode delegate for this image format `/var/tmp/magick-32598mzLCfx9T2MVU1' @ error/constitute.c/ReadImage/552.
convert: Postscript delegate failed `a.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/682.
convert: no images defined `b.png' @ error/convert.c/ConvertImageCommand/3127.
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away