Then do
Code: Select all
cd folder1
mogrify -path path2/folder2 -format tiff -density 300 -background white -flatten -compress lzw *.ai
You may have to write loop over all the files in folder1, process them with convert, and write them to folder2
If your files have no spaces, you can do
Code: Select all
cd folder1
list=`ls`
for img in $list; do
name=`convert $img -format "%t" info:`
convert -density 300 $img -background white -flatten -compress lzw path2/folder2/${name}.tiff
done
This can be put into a bash shell script with arguments for density and input and output directories.