choose the script that suits.
To find the size of original image folder, du -sh (foldername)/
run the script by typing source ./resize_tst.sh this script is when you want to save the pictures to a different folder.
The script, ./resize.sh is when you want to change the images to the same folder.