mirror of
https://github.com/gotson/komga.git
synced 2025-12-16 13:33:49 +01:00
fix: set image type when generating thumbnails to avoid missing channels
Closes: #976
This commit is contained in:
parent
16091d4b5e
commit
40f3e1623d
1 changed files with 1 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue