|
I wrote this
script: if [[ ! -z $1 ]]; then
echo "One picture"
convert -resize 25% "$1" "$1"_small
else
echo "All pictures"
for fullfile in *.[Jj][Pp][Gg]; do
echo "Making thumbnail"
filename=$(basename "$fullfile")
extension="${filename##*.}"
filename="${filename%.*}"
convert -resize 25% "$fullfile" "$filename"_small.$extension
done
fi
On 04/28/2015 04:31 PM, Tim Kelley
wrote:
|