Skip to content

Commit 6f005dd

Browse files
committed
small improvements
1 parent d9d92fe commit 6f005dd

File tree

3 files changed

+159
-140
lines changed

3 files changed

+159
-140
lines changed

JxlCoder.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'JxlCoder'
3-
s.version = '1.2.0'
3+
s.version = '1.2.1'
44
s.summary = 'JXL coder for iOS and MacOS'
55
s.description = 'Provides support for JXL files in iOS and MacOS'
66
s.homepage = 'https://github.com/awxkee/jxl-coder-swift'

Sources/JxlCoder/JXLCoder.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)