Skip to content

Commit

Permalink
fix: set image type when generating thumbnails to avoid missing channels
Browse files Browse the repository at this point in the history
Closes: #976
  • Loading branch information
gotson committed Oct 30, 2022
1 parent 16091d4 commit 40f3e16
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 40f3e16

Please sign in to comment.