2
イメージを圧縮しようとしましたが、成功しませんでした。私の小さな実験イメージサイズを小さくするimagemagic
var results = new Dictionary<int, int>();
for (int i = 0; i <= 100; i++)
{
var stream = new MemoryStream();
image.Quality = i;
image.CompressionMethod = CompressionMethod.Zip;
image.Write(stream, MagickFormat.Png);
results[i] = stream.GetBuffer().Length;
stream.Flush();
}
var best = results.OrderBy(e => e.Value).First();
// the same length as for original image. quality doesn't work in this example - dictionary values are identical
で
ルックは、いずれも正しい方向に私を指すもらえますか?
私はすでにあなたがMagick.NETを使用していると思われ、ここでImageMagick: Lossless max compression for PNG?