Last active
August 29, 2015 14:13
-
-
Save yackermann/afae869fe476226f3846 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in *.JPG; do convert $file -quality 50 50q-$file; echo "Done compression of "$file; done #50% quality of the original | |
for file in *.JPG; do convert $file -resize x1024 resized-$file; echo "Done resize of "$file; done #resize to 1024px height | |
for file in *.JPG; do git add $file; echo "Done git add "$file; done #add to git | |
for file in *.JPG; do realpath $file; done #print real path of the image | |
for file in *.JPG; do cat "/home/niemand/Timelapse/c/"$file > `readlink -e $file`; done #fuckup fix | |
convert -delay 10 -loop 0 *.JPG animation.gif | |
for D in *; do | |
if [ -d "${D}" ]; then | |
cd "${D}" | |
for file in *.JPG | |
do | |
cat "/home/niemand/Timelapse/c/"$file > `readlink -e $file` | |
done | |
convert -delay 20 -loop 0 *.JPG animation.gif | |
cd .. | |
echo "Done ${D}" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment