From 40f3e1623db7b9dafc29667c36c56c098910c77c Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 24 Oct 2022 11:19:11 +0800 Subject: [PATCH] fix: set image type when generating thumbnails to avoid missing channels Closes: #976 --- .../org/gotson/komga/infrastructure/image/ImageConverter.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/komga/src/main/kotlin/org/gotson/komga/infrastructure/image/ImageConverter.kt b/komga/src/main/kotlin/org/gotson/komga/infrastructure/image/ImageConverter.kt index 1d480ee57b..5d24ef01cd 100644 --- a/komga/src/main/kotlin/org/gotson/komga/infrastructure/image/ImageConverter.kt +++ b/komga/src/main/kotlin/org/gotson/komga/infrastructure/image/ImageConverter.kt @@ -85,6 +85,7 @@ class ImageConverter( ByteArrayOutputStream().use { Thumbnails.of(imageBytes.inputStream()) .size(size, size) + .imageType(BufferedImage.TYPE_INT_ARGB) .outputFormat(format) .toOutputStream(it) it.toByteArray()