#!/bin/bash
#
# Convert png file into a png sequence for video use
for i in {1..150}; do
j=$(printf "%04d" $i)
cp "input.png" "pngs"$j".png"
done
The Bash script above does that - it takes a file called input.png, and creates copies of it to make a PNG sequence of 150 frames numbered from png0001.png to png0150.png.
1 comment:
Best IT and zoho Software Consulting services at Hamd technologies.
IT Consulting
Post a Comment