File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
tests/ImageSharp.Tests/Formats/Png Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Six Labors.
2
2
// Licensed under the Six Labors Split License.
3
3
4
+ using System . Runtime . InteropServices ;
4
5
using Microsoft . DotNet . RemoteExecutor ;
5
6
using SixLabors . ImageSharp . Formats ;
6
7
using SixLabors . ImageSharp . Formats . Png ;
@@ -120,8 +121,11 @@ public void PngDecoder_Decode_Resize<TPixel>(TestImageProvider<TPixel> provider)
120
121
FormattableString details = $ "{ options . TargetSize . Value . Width } _{ options . TargetSize . Value . Height } ";
121
122
122
123
image . DebugSave ( provider , testOutputDetails : details , appendPixelTypeToFileName : false ) ;
124
+
125
+ // Floating point differences result in minor pixel differences.
126
+ // Output have been manually verified.
123
127
image . CompareToReferenceOutput (
124
- ImageComparer . TolerantPercentage ( 0.0003F ) , // Magick decoder shows difference on Mac
128
+ ImageComparer . TolerantPercentage ( TestEnvironment . OSArchitecture == Architecture . Arm64 ? 0.0005F : 0.0003F ) ,
125
129
provider ,
126
130
testOutputDetails : details ,
127
131
appendPixelTypeToFileName : false ) ;
You can’t perform that action at this time.
0 commit comments