Skip to content

Commit e5406e5

Browse files
committed
fixed quality
1 parent 2459b68 commit e5406e5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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.7.0'
3+
s.version = '1.7.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/jxlc/JxlJpegLiEncoder.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ + (nullable NSData *)encode:(nonnull JXLSystemImage *)platformImage
6262
try {
6363
jxlcoder::JPEGLIEncoder encoder(mRGBASource.data(), stride, width, height,
6464
useXYB ? jxlcoder::JPEGLI_COMPRESSION_MODE_XYB : jxlcoder::JPEGLI_COMPRESSION_MODE_DEFAULT);
65+
encoder.setQuality(quality);
6566
std::vector<uint8_t> encoded = encoder.encode();
6667
JxlJpegLiDataWrapper<uint8_t>* dataWrapper = new JxlJpegLiDataWrapper<uint8_t>();
6768
dataWrapper->data = encoded;

0 commit comments

Comments
 (0)