A meeting place for general discussion about the ImageSharp libary https://github.com/sixLabors/ImageSharp
JimBobSquarePants on tiff-format
cleanup Update shared-infrastructure Merge pull request #1479 from S… and 33 more (compare)
JimBobSquarePants on webp
Add initial vectorized implemen… Fix mistakes in final touches Add unit tests for both convert… and 13 more (compare)
JimBobSquarePants on future-targets
With Magick.net I used
Statistics stats = image.Statistics();
double red = stats.GetChannel(PixelChannel.Red).Mean;
Exception:Thrown: "Could not load file or assembly 'System.Linq, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Le fichier spécifié est introuvable." (System.IO.FileNotFoundException)
A System.IO.FileNotFoundException was thrown: "Could not load file or assembly 'System.Linq, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Le fichier spécifié est introuvable."
Time: 12-01-2021 18:36:29
Thread:Main Thread[7608]
SixLabors.ImageSharp.Image image = SixLabors.ImageSharp.Image.Load(inStream)
using (MemoryStream inStream = new MemoryStream(data))
using (MemoryStream outStream = new MemoryStream())
using (SixLabors.ImageSharp.Image image = SixLabors.ImageSharp.Image.Load(inStream))
{
IImageEncoder format;
ImageFormat imageFormat = data.GetImageFormat();
image.Mutate(x => x.Resize(new ResizeOptions()
{
Mode = ResizeMode.Crop,
Size = new SixLabors.ImageSharp.Size(width, height),
Position = AnchorPositionMode.Center
}));
image.Save(outStream, format);
outStream.Position = 0;
return outStream.ToArray();
}
As has been noted many times, use either Stack Overflow or https://github.com/SixLabors/ImageSharp/discussions?discussions_q=category%3AQ%26A for questions - this Gitter channel is only left open for historical purposes.
I'm accidently still in this channel, but it's not a support channel "officially" supported by the ImageSharp team