This project has moved. For the latest updates, please go here.

Powershell

Mar 16, 2014 at 8:52 PM
Curious if anyone has tried Magick.NET with powershell and possibly could supply a working example.
Coordinator
Mar 17, 2014 at 9:18 PM
I just tried to see if I could get it to work and it is not that difficult. Below is a simple example that resizes an image:
# Magick.NET.ps1
[void][Reflection.Assembly]::LoadFrom("Magick.NET-x64.dll")
$image = New-Object ImageMagick.MagickImage
$image.Read("Snakeware.jpg")
$image.Resize("100x")
$image.Write("Snakeware.100x.jpg")
$image.Dispose()
C:\Test\Magick.NET.Powershell>powershell -ExecutionPolicy Unrestricted .\Magick.NET.ps1
Jpeg 100x75 8-bit sRGB 2.05kB