Skip to content

Commit 6de4c18

Browse files
committed
测试降低图片渲染质量提升速度
1 parent b79897c commit 6de4c18

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • src/MediaConverters/MediaConverters.Tool

src/MediaConverters/MediaConverters.Tool/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ internal static async Task<ErrorCode> RunAsync(ConvertHandler convertHandler)
152152
{
153153
ColorType = PngColorType.RgbWithAlpha,
154154
BitDepth = PngBitDepth.Bit8,
155+
CompressionLevel = PngCompressionLevel.BestSpeed,
155156
});
156157

157158
context.LogMessage($"[Performance] SaveAsPngAsync cost {stepStopwatch.ElapsedMilliseconds}ms Total {totalStopwatch.ElapsedMilliseconds}ms");

0 commit comments

Comments
 (0)