Sketch Build

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.

Requirements

  • Java 8+

Installation

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")
}

Features

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
dstImage

Transformations

Rotate Resize Crop rectangle Crop circle
dstImage dstImage dstImage dstImage
Border radius Add border Add border with radius
dstImage dstImage dstImage
Inline text Inline image Set pixels
dstImage dstImage dstImage

Effects

Brightness Contrast Opacity
dstImage dstImage dstImage
Color Mask Grayscale Invert Colors
dstImage dstImage dstImage
Blur Blur partial
dstImage dstImage
Pixelate Pixelate partial
dstImage dstImage

License

Licensed under the Apache 2.0 License.

GitHub

View Github