An image manipulation library for Kotlin
An image manipulation library for Kotlin.
Sketch
doesn't require any external installation like OpenCV or OCR and can be used right away. It's actually a
zero-dependency library designed for simplicity that wraps the Java AWT BufferedImage. The library provides an
asynchronous interface for all image operations.
The library is intended to be published to Maven Central.
In the meantime, it can be installed locally:
./gradlew publishToMavenLocal
Add the library as a dependency to your project:
dependencies {
implementation("io.github.reugn:sketch:0.1.0")
}
Below is a list of the supported transformations/effects with the resulting image.
Click the heading to get the test code that generated the example.
Original Image |
---|
Rotate | Resize | Crop rectangle | Crop circle |
---|---|---|---|
Border radius | Add border | Add border with radius |
---|---|---|
Inline text | Inline image | Set pixels |
---|---|---|
Brightness | Contrast | Opacity |
---|---|---|
Color Mask | Grayscale | Invert Colors |
---|---|---|
Blur | Blur partial |
---|---|
Pixelate | Pixelate partial |
---|---|
Licensed under the Apache 2.0 License.