Skip to content

Commit

Permalink
Update to 1.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
awxkee committed Sep 29, 2023
1 parent e132edb commit c4e17a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jxlcoderglide/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ dependencies {
api("io.coil-kt:coil:2.4.0")
implementation("com.github.bumptech.glide:glide:4.16.0")
kapt("com.github.bumptech.glide:compiler:4.16.0")
api("com.github.awxkee:jxl-coder:1.5.3")
api("com.github.awxkee:jxl-coder:1.5.4")

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ package com.awxkee.jxlcoder.glide
import android.graphics.Bitmap
import android.os.Build
import com.awxkee.jxlcoder.JxlCoder
import com.awxkee.jxlcoder.JxlResizeFilter
import com.awxkee.jxlcoder.PreferredColorConfig
import com.awxkee.jxlcoder.ScaleMode
import com.bumptech.glide.load.DecodeFormat
Expand Down Expand Up @@ -84,7 +85,14 @@ class JxlCoderByteBufferDecoder(private val bitmapPool: BitmapPool) :
}

val bitmap =
coder.decodeSampled(src, idealWidth, idealHeight, preferredColorConfig, ScaleMode.FIT)
coder.decodeSampled(
src,
idealWidth,
idealHeight,
preferredColorConfig,
ScaleMode.FIT,
JxlResizeFilter.CATMULL_ROM
)

return BitmapResource.obtain(bitmap, bitmapPool)
}
Expand Down

0 comments on commit c4e17a8

Please sign in to comment.