Shell Script Sederhana Buat Resize Image

Posted: April 17, 2011 in Komputer

Iseng-iseng bikin shell script, ini terilhami waktu cewe gw minta tolong bikin banner, trus gw iseng aja mikir gimana ya bisa ga gw bikin skrip buat resize gambar yang banyak secara otomatis, akhirnya kepikiran bikin skrip aja buat gw jalanin di Terminal, cek langsung di bawah ini:

#!/bin/bash
#Skrip force resize otomatis
#oleh yuginta

#ukuran yang diinginkan
banner=660x250
#force resize image
convert ./*.jpg -resize $banner\!  ./gambarbaru.jpg

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s