
#! /bin/bash
[ -z $1 ] && echo "Run: $0 file_name.jpg" ; exit 2
wpdir=`dirname "$1"`
wpname=`basename "$1"`
convert "${wpdir}/${wpname}" -crop 540x1+0+0 +repage "tmp_first.jpg"
convert "${wpdir}/${wpname}" -crop 540x1+0+959 +repage "tmp_last.jpg"
convert "tmp_first.jpg" -duplicate 115,0 -append -blur 0x8 "tmp_top.jpg"
convert "tmp_last.jpg" -duplicate 261,0 -append -blur 0x8 "tmp_end1.jpg"
convert "tmp_end1.jpg" -fill black -draw 'color 0,0 reset' "tmp_end2.jpg"
convert "tmp_top.jpg" "${wpdir}/${wpname}" "tmp_end1.jpg" "tmp_end2.jpg" -append "ambience_${wpname}"
rm -f tmp_*.jpg
Right input size 540x960 pixels not checked/fixed!

| The Following User Says Thank You to mced For This Useful Post: | ||
| The Following User Says Thank You to HtheB For This Useful Post: | ||


| The Following User Says Thank You to Kaacz For This Useful Post: | ||

