Bash Script to Batch Resize all Images in a Folder
A simple script which will recognize all image types in the PWD and reduce them by 50% and copy them to the resized folder under PWD. Good for bulk resizing of images. #!/bin/bash files=($(file -i * | awk -F ‘:’ ‘BEGIN {ORS=""} /^.*:[ \t]*image\/[a-z]*; charset=binary/ {for(i=1;i<NF-1;i++) {print $i":"} {print $(NF-1)"\n"} }’ | sed ‘s/ /:spacecharacter:/g’ [...]
Recent Comments
(1 weeks ago)
(1 weeks ago)
(1 weeks ago)
(1 weeks ago)