MolotovCherry / kmagick

Kotlin ImageMagick bindings to the MagickWand API
MIT License
40 stars 5 forks source link

[FEATURE REQ] Support image deskew #7

Open GregHib opened 2 years ago

GregHib commented 2 years ago

CLI: convert input.jpg -deskew 40% output.jpg IMOps.html#deskew - im4java

MolotovCherry commented 2 years ago

im4java is for building command-line options. If you want to execute command-line, you can just execute the magick binary directly using java/kotlin. It'll support 100% of image-magick command line options as it is the exact same command-line version.

If you're looking for part of the imagemagick c api to be exposed in kmagick, e.g. magick-wand, please file a request at the upstream imagemagick api provider, magick-rust

Edit: You're looking for this specific method from the c api,

GregHib commented 2 years ago

https://github.com/nlfiedler/magick-rust/issues/91

MolotovCherry commented 2 years ago

Merged upstream now. I'll have to wait until they release a new version upstream, but it's there now.

I still need to update the changes to the last release as well.

Edit: Updates done