Skip to content

Commit

Permalink
fixed quality
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Mar 22, 2024
1 parent 2459b68 commit e5406e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion JxlCoder.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'JxlCoder'
s.version = '1.7.0'
s.version = '1.7.1'
s.summary = 'JXL coder for iOS and MacOS'
s.description = 'Provides support for JXL files in iOS and MacOS'
s.homepage = 'https://github.com/awxkee/jxl-coder-swift'
Expand Down
1 change: 1 addition & 0 deletions Sources/jxlc/JxlJpegLiEncoder.mm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ + (nullable NSData *)encode:(nonnull JXLSystemImage *)platformImage
try {
jxlcoder::JPEGLIEncoder encoder(mRGBASource.data(), stride, width, height,
useXYB ? jxlcoder::JPEGLI_COMPRESSION_MODE_XYB : jxlcoder::JPEGLI_COMPRESSION_MODE_DEFAULT);
encoder.setQuality(quality);
std::vector<uint8_t> encoded = encoder.encode();
JxlJpegLiDataWrapper<uint8_t>* dataWrapper = new JxlJpegLiDataWrapper<uint8_t>();
dataWrapper->data = encoded;
Expand Down

0 comments on commit e5406e5

Please sign in to comment.