chore(coil): Remove commented code [skip ci]

It's used to compress custom cover instead
This commit is contained in:
Ahmad Ansori Palembani 2024-12-08 13:46:10 +07:00
parent 1d200f426c
commit 2649425259
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -59,29 +59,6 @@ class TachiyomiImageDecoder(private val resources: ImageSource, private val opti
} }
} }
/*
val maxTextureSize = 4096f
if (maxOf(bitmap.width, bitmap.height) > maxTextureSize) {
val widthRatio = bitmap.width / maxTextureSize
val heightRatio = bitmap.height / maxTextureSize
val targetWidth: Float
val targetHeight: Float
if (widthRatio >= heightRatio) {
targetWidth = maxTextureSize
targetHeight = (targetWidth / bitmap.width) * bitmap.height
} else {
targetHeight = maxTextureSize
targetWidth = (targetHeight / bitmap.height) * bitmap.width
}
val scaledBitmap = Bitmap.createScaledBitmap(bitmap, targetWidth.toInt(), targetHeight.toInt(), true)
bitmap.recycle()
bitmap = scaledBitmap
}
*/
return DecodeResult( return DecodeResult(
image = bitmap.asImage(), image = bitmap.asImage(),
isSampled = sampleSize > 1, isSampled = sampleSize > 1,