User:Mths/jpgloop: Difference between revisions
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[File: | [[File:Linuxoida_small.gif | 612px]][[File:Linux oida.jpg]] | ||
[[File: | |||
<source lang="bash"> | |||
#!/bin/bash | |||
cp linux_oida.jpeg lastframe.jpg | |||
#for ((i=0;i<=100;i++)) | |||
for ((i=100;i>=1;i--)) | |||
do | |||
name=$(printf "%03d\n" $i) | |||
#convert linux_oida.jpeg -quality $i output$i.jpg | |||
convert lastframe.jpg -quality $i output$name.jpg | |||
#COPY THE CURRENT TO LASTFRAME.JPG | |||
cp output$name.jpg lastframe.jpg | |||
done | |||
</source> |