Giter Site home page Giter Site logo

reugn / sketch Goto Github PK

View Code? Open in Web Editor NEW
45.0 2.0 0.0 336 KB

An image manipulation library for Kotlin

License: Apache License 2.0

Kotlin 100.00%
kotlin kotlin-library java image-processing image-manipulation image image-effects image-transformations

sketch's Introduction

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.

sketch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sketch's Issues

Rotate Inline Image

Hi,

Great library - But would it be possible to apply manipulations to the inline image? e.g. inline an image on a background but rotate the inlined image?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.