Any advice on increasing performance of the write? Thanks
Code: Select all
GCI "C:\users\Allan\desktop\\images" | ForEach-Object {
$img = [ImageMagick.MagickImage]::new($_)
$Draw = [ImageMagick.Drawables]::new()
$Draw.FillColor([ImageMagick.MagickColors]::Blue)
$draw.Rectangle(0,0,780,245)}
$Draw.Draw($img)
$FileOut ="C:\users\allan\desktop\images\x$_"
$img.Write($FileOut)
}
I'm trying other methods and they write at around .2 to .3 of a second. That doesn't sound like much but those processes already take about 2 hours to do.
Thanks