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.

convert-png.sh 332 B

5 年之前
123456789101112131415
  1. #!/bin/bash
  2. inputFiles=$1/*
  3. outDir=$2
  4. mkdir -p $outDir
  5. for inFile in $inputFiles
  6. do
  7. outFile=${inFile%.*}.png
  8. outFile="$outDir/$(basename $outFile)"
  9. echo "Converting $inFile ..."
  10. #convert -background none -density 600 $inFile $outFile
  11. /mnt/c/Program\ Files/Inkscape/inkscape.exe $inFile --export-png $outFile -d 600
  12. done