LoginSignup
0
0

More than 3 years have passed since last update.

ディレクトリ内のPSDファイルをPDFに一括変換

Last updated at Posted at 2020-08-12

psdファイル(元データ)とpdfファイル(変換後)それぞれ用のディレクトリがある親ディレクトリで実施する前提


$ ls
psd_dir/ pdf_dir

ImageMagickを利用


for file in `ls psd_dir`; do
  # 拡張子削除
  base=`basename "${file}" .psd`
  # 変換
  convert -flatten -density 300 -compress zip psd_dir/"${base}".psd pdf_dir/"${base}".pdf; 
done

参考
- ファイル名からディレクトリや拡張子を取り除くには
- 表紙の画像ファイルを PDFファイルに変換 解像度 350dpi

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