Skip to content

Commit

Permalink
refactor: adjust thumbnail quality in ImageUtils to improve image ren…
Browse files Browse the repository at this point in the history
…dering
  • Loading branch information
ShiinaKin committed Dec 18, 2024
1 parent 64ae4ef commit 92076f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/kotlin/io/sakurasou/util/ImageUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ object ImageUtils {
return withContext(Dispatchers.IO) {
val relativePath = "$subFolder/$fileName"
val imageType = ImageType.valueOf(fileName.substringAfterLast('.').uppercase())
val thumbnailBytes = transformImageByHeight(image, imageType, THUMBNAIL_HEIGHT, 0.5)
val thumbnailBytes = transformImageByHeight(image, imageType, THUMBNAIL_HEIGHT, 0.9)

when (val strategyConfig = strategy.config) {
is LocalStrategy -> {
Expand Down

0 comments on commit 92076f2

Please sign in to comment.