@@ -38,7 +38,7 @@ public class JXLCoder {
3838 public static func decode( srcStream: InputStream ,
3939 rescale: CGSize = . zero,
4040 pixelFormat: JXLPreferredPixelFormat = . optimal,
41- sampler: JxlSampler = . cubic ) throws -> JXLPlatformImage {
41+ sampler: JxlSampler = . mitchell ) throws -> JXLPlatformImage {
4242 return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, sampler: sampler)
4343 }
4444
@@ -49,7 +49,7 @@ public class JXLCoder {
4949 public static func decode( url: URL ,
5050 rescale: CGSize = . zero,
5151 pixelFormat: JXLPreferredPixelFormat = . optimal,
52- sampler: JxlSampler = . cubic ) throws -> JXLPlatformImage {
52+ sampler: JxlSampler = . mitchell ) throws -> JXLPlatformImage {
5353 guard let srcStream = InputStream ( url: url) else {
5454 throw NSError ( domain: " JXLCoder " , code: 500 ,
5555 userInfo: [ NSLocalizedDescriptionKey: " JXLCoder cannot open provided URL " ] )
@@ -64,7 +64,7 @@ public class JXLCoder {
6464 public static func decode( data: Data ,
6565 rescale: CGSize = . zero,
6666 pixelFormat: JXLPreferredPixelFormat = . optimal,
67- sampler: JxlSampler = . cubic ) throws -> JXLPlatformImage {
67+ sampler: JxlSampler = . mitchell ) throws -> JXLPlatformImage {
6868 let srcStream = InputStream ( data: data)
6969 return try shared. decode ( srcStream, rescale: rescale, pixelFormat: pixelFormat, sampler: sampler)
7070 }
0 commit comments