sksamuel / scrimage

JVM - Java, Kotlin, Scala image processing library
https://sksamuel.github.io/scrimage
Apache License 2.0
1.05k stars 140 forks source link

Unable to use composite on images #261

Closed zt64 closed 1 year ago

zt64 commented 1 year ago

Hi,

I'm trying to use the SubtractComposite on an image I have and for whatever reason it throws this bizarre error: java.lang.IllegalStateException: Input image must store pixels as ints. Convert your input image using 0

My code is

val secondImage = ImmutableImage.loader().fromResource("/second-image.png")

image.composite(SubtractComposite(1.0), secondImage)
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.