I want to be able to specify the location in both where to scan and where the converted file will go.
It’s just there is a lot of conversions and I’ve got a script which should sort it for me.
Currently I’ve tried
convert -resize 300x300 > /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/normal/*.jpg /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/tn_med/$1.jpg
and
for i in $( ls /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/normal); do /usr/convert resize 360x360 > /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/normal/$i /media/usbdisk1/development/ephoto/richard/images/gallery/2007/29/tn_med/$i done;
There’s no reason to repeat your long directory three times. Use a variable for the base. And don’t use
ls:Instead of
basenameyou could do it this way: