Tools for generating the Volumetric Regimes book https://volumetricregimes.xyz/ (wiki-to-print, using Paged.js)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

10 lines
318 B

# Read first argument from command line: input folder name
INPUT_DIR=$1
OUTPUT_DIR=$INPUT_DIR-bw
# Only make an output folder if it does not exist yet
mkdir -p $OUTPUT_DIR
for IMG in $(ls $INPUT_DIR); do
echo "$INPUT_DIR/$IMG ---> $OUTPUT_DIR/$IMG" && convert $INPUT_DIR/$IMG -colorspace Gray $OUTPUT_DIR/$IMG;
done