User:Mths/jpgloop: Difference between revisions
(Created page with "File:Linux oida.jpg") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[File:Linux oida.jpg]] | [[File:Linuxoida_small.gif | 612px]][[File:Linux oida.jpg]] | ||
<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> |