連番画像で出力する
アニメーションの各フレームを独立した画像ファイルとして取り出したい場合、--save-frames オプションを使用します。
連番画像の保存
Section titled “連番画像の保存”--save-frames に保存先ディレクトリを指定して実行します。
console2svg capture -v --save-frames ./frames -- sl指定したディレクトリ配下に、各フレームが frame-0000.svg, frame-0001.svg のような連番ファイル名で出力されます。
ディレクトリframes
- frame-0000.svg
- frame-0001.svg
- frame-0002.svg
- frame-0003.svg 以下略
サンプリングレートの指定
Section titled “サンプリングレートの指定”--fps オプションと組み合わせることで、サンプリング間隔を調整できます。
# 1秒あたり10フレームのレートで出力console2svg capture -v --fps 10 --save-frames ./output-frames -- nyancat