Created
May 10, 2011 16:43
-
-
Save muyesh/964857 to your computer and use it in GitHub Desktop.
ImageMagicを利用してPPTとかのPDFをKindle3用の画像アーカイブzipにするスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pdf=$(echo $1|sed 's/.pdf//g') | |
# 変換 | |
convert -density 150 -geometry 800x600 +antialias \ | |
-rotate 90 -type GrayScale ${pdf}.pdf pdfpage_%02d.jpg | |
# 圧縮 | |
zip ${pdf}.zip pdfpage_*.jpg | |
# 削除 | |
rm pdfpage_*.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment