pac1250

convert svg to png

Jan 25th, 2015
333
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×