Skip to content

Instantly share code, notes, and snippets.

@herrjemand
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herrjemand/afae869fe476226f3846 to your computer and use it in GitHub Desktop.
Save herrjemand/afae869fe476226f3846 to your computer and use it in GitHub Desktop.
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