-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Description
Sometimes 0 bytes is generated from processing image. Unfortunately I don't have steps to reproduce. There is no error. It doesn't seem to be image format specific.
Code I use for processing images:
private val imageWriters = mapOf(
ImageFormat.JPG to JpegWriter().withCompression(50),
ImageFormat.PNG to PngWriter().withMaxCompression(),
ImageFormat.WEBP to WebpWriter.DEFAULT
.withQ(80)
.withM(6)
.withMultiThread(),
)
...
val loadedImage = ImmutableImage
.loader()
.fromStream(imageData)
loadedImage
.fit(desiredResolution.width, desiredResolution.height, Color.WHITE, Position.Center)
.forWriter(imageWriter)
.write(output)
Scrimage 4.3.3, JDK 17, Kotlin 2.1.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels