How I convert my images

This is my batch code for decreasing the images :
for file in *.jpg; do convert $file -resize 600x600 $file; done

And this code snipplet can be used for a unique naming :
for i in *.jpg; do counter=$(( $counter + 1 )); mv "$i" "filename${counter}".jpg; done

This snipplet removes EXIF metadata from all photos and writes copyright tag to all files in directory.

for i in *.jpg; do echo "Processing $i"; exiftool -all= "$i"; done
for i in *.jpg; do echo "Processing $i"; exiftool -copyright="(C) 2018 That's me" "$i"; done

Copyright (c) 2017, 2018 Raphael Münch, last change: 2018-08-06
Valid HTML 5.0