22 July

Linux shell scripts : change picture size and resolution

The following code is an easy to  use script to convert pictures to smaller size, specially before uploading to internet.
copy this script to the photo folder and cd to the directory from console; then execute (remember to chmode -a+rx) by ./scriptname


for x in $(ls)
do
convert -size 500 $x new-$x
done







No comments:

Post a Comment

Beyond Toughness: Why Your Car's Brain Needs AEC-Q100 AND ASIL-B

AEC-Q100 vs. ASIL-B: Quality Meets Safety In the era of autonomous driving and electric vehicles, the electron...