is there any image processing library for kotlin? like jimp in node js
e
enleur
02/10/2020, 2:27 PM
you can take any java lib
👍 1
e
Eivind Nilsbakken
02/10/2020, 2:53 PM
But only for Kotlin JVM, right?
m
Madhan
02/11/2020, 6:03 AM
@Eivind Nilsbakken yes, will share much details once i completed my project
e
Eivind Nilsbakken
02/11/2020, 8:06 AM
@Madhan I meant that I don't think you can use any Java lib for js and native targets. That will only work for the jvm target. You can use the mechanism for expected and actual declarations for the platform specific things though.
m
Madhan
02/11/2020, 8:15 AM
Actually i'm using Ktor for my server side programming, for my project i need image processing library.
i need the functionality that has Jimp in node js.
g
gildor
02/11/2020, 11:17 PM
Ktor server is JVM only, so any Java library will be fine
Not sure what kind feature you need exactly, but there ia class java.awt.Image in Java standard library, which allows you to do some image manipulations
gildor
02/11/2020, 11:19 PM
If you need something more powerful, you probably can use some Java interface for ImageMagic, but it requires native libs installed
Thumbnailator also has nice API
https://github.com/coobird/thumbnailator