@@ -38,7 +38,7 @@ public class JXLCoder {
38
38
public static func decode( srcStream: InputStream ,
39
39
rescale: CGSize = . zero,
40
40
pixelFormat: JXLPreferredPixelFormat = . optimal,
41
- sampler: JxlSampler = . cubic ) throws -> JXLPlatformImage {
41
+ sampler: JxlSampler = . mitchell ) throws -> JXLPlatformImage {
42
42
return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, sampler: sampler)
43
43
}
44
44
@@ -49,7 +49,7 @@ public class JXLCoder {
49
49
public static func decode( url: URL ,
50
50
rescale: CGSize = . zero,
51
51
pixelFormat: JXLPreferredPixelFormat = . optimal,
52
- sampler: JxlSampler = . cubic ) throws -> JXLPlatformImage {
52
+ sampler: JxlSampler = . mitchell ) throws -> JXLPlatformImage {
53
53
guard let srcStream = InputStream ( url: url) else {
54
54
throw NSError ( domain: " JXLCoder " , code: 500 ,
55
55
userInfo: [ NSLocalizedDescriptionKey: " JXLCoder cannot open provided URL " ] )
@@ -64,7 +64,7 @@ public class JXLCoder {
64
64
public static func decode( data: Data ,
65
65
rescale: CGSize = . zero,
66
66
pixelFormat: JXLPreferredPixelFormat = . optimal,
67
- sampler: JxlSampler = . cubic ) throws -> JXLPlatformImage {
67
+ sampler: JxlSampler = . mitchell ) throws -> JXLPlatformImage {
68
68
let srcStream = InputStream ( data: data)
69
69
return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, sampler: sampler)
70
70
}
0 commit comments