fix: set image type when generating thumbnails to avoid missing channels

Closes: #976
This commit is contained in:
Gauthier Roebroeck 2022-10-24 11:19:11 +08:00
parent 16091d4b5e
commit 40f3e1623d

View file

@ -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()