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

Added the option to generate the webp file without alpha. #270

Closed Squadella closed 11 months ago

Squadella commented 1 year ago

Hi,

I was working on another app and I needed to generate some webp files. Your library helped me greatly, it does just what I want to do.

However, there is no option on the library to generate webp images without alpha layer. I implemented it for the webp using the -noalpha option of the cwebp command.

For this new option, I have kept the old constructor with the default arguments to avoid breaking the library and created a new one if people want to set it directly.

Hope you will accept my MR.

sksamuel commented 11 months ago

Awesome.