Posts Tagged ‘Linux shell scripts’

Linux shell scripts | change picture size and resolution | Belajar Linux

Linux shell scripts often use to make our life easier, but not all people understand how it works. You can find dozen shell scripts to help you run linux faster and more user friendly. If you have any interest about linux shell scripts then you are on the right place. Below is one sample Linux shell scripts than we use to canvert picture size smaller before we can upload to the Internet.

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

After you copy that script all picture in that folder will decrease it’s size so you can upload that picture to the Internet easier. More about Learn Linux subject can be found within this link or you may search to entire site.

Other related articles:

Technorati Tags: