pac1250

convert svg to png

Jan 25th, 2015
275
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. param ($dpi = 90)
  2. set-alias inkscape "C:\Program Files\Inkscape\inkscape.exe"
  3. Get-ChildItem -Filter *.svg | % {
  4.     $src = $_.FullName
  5.     $dst = $src -replace "\.svg$", ".png"
  6.     "inkscape -f $($src) -e $($dst) -d $($dpi)"
  7.     inkscape -f "$($src)" -e "$($dst)" -d "$($dpi)"
  8. }
  9. Write-Host "done !"
  10. $x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
RAW Paste Data