LoginSignup
17
19

More than 5 years have passed since last update.

ImageMagickで複数ページのPDFをPNGに変換する

Last updated at Posted at 2014-11-17

準備

GhostScriptとImageMagickをインストールしておく。

brew install gs imagemagick

変換

convert -density 600 images.pdf image.png

1ページずつ変換することもできる。

for i in {0..100}; do j=`expr $i + 1`; convert -density 600 images.pdf[$i] image`printf %04d $j`.png; done

images.pdf → image0001.png, image0002.png, ...

17
19
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
17
19