Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Powershell

$
0
0
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

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>