We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 208b148 commit 8fda214Copy full SHA for 8fda214
core/data/src/main/java/ru/tech/imageresizershrinker/core/data/image/AndroidImageCompressor.kt
@@ -76,7 +76,7 @@ internal class AndroidImageCompressor @Inject constructor(
76
imageFormat: ImageFormat,
77
quality: Quality
78
): ByteArray = withContext(encodingDispatcher) {
79
- val image = image.toSoftware().let {
+ val transformedImage = image.toSoftware().let {
80
if (imageFormat !in ImageFormat.alphaContainedEntries) {
81
withContext(defaultDispatcher) {
82
Trickle.drawColorBehind(
@@ -94,7 +94,7 @@ internal class AndroidImageCompressor @Inject constructor(
94
imageScaler = imageScaler
95
)
96
.compress(
97
- image = image,
+ image = transformedImage,
98
quality = quality.coerceIn(imageFormat)
99
100
}
0 commit comments