#!/bin/bash
#convert 240p to bw picture
for f in ./240p/*.bmp; do
    # do some stuff here with "$f"
    echo $(basename $f .bmp)
    #convert $f -alpha off -threshold 50% -flip -negate -colors 2 "./bw/"$(basename $f .bmp)".bmp"
    convert $f -alpha off -threshold 15% -flip -colors 2 "./bw/"$(basename $f .bmp)".bmp"
    #echo "./bmp/"$(basename $f .png)".bmp"
done
