

fix #12: Bad behavior when an output is given and no deskewing is needed.fix #3: Command line option to set output compression - now for TIFF and JPEG.fix #17: Optional auto-crop after rotation.fix #5: Detect skew angle only (no rotation done) - optionally only skew detection.fix #15: Better image quality after rotation - better default and also selectable nearest|linear|cubic|lanczos filtering.Scripts to run tests ( RunTests.bat and runtests.sh) in Bin.īy default scripts just call deskew command but you can pass a different one as a parameter

You can find some test images in TestImages folder and
Delphi xe10 project process to long archive#
Just put the files inside the archive to the same folder as deskew-mac executable.
Delphi xe10 project process to long download#
Supported specs: jXX - JPEG compression quality, XX is in range tSCHEME - TIFF compression scheme: none|lzw|rle|deflate|jpeg|g4 Supported file formats Input: BMP, JPG, PNG, JNG, GIF, DDS, TGA, PBM, PGM, PPM, PAM, PFM, TIF, PSD Output: BMP, JPG, PNG, JNG, GIF, DDS, TGA, PGM, PPM, PAM, PFM, TIF, PSD Notesįor TIFF support in Linux and macOS you need to have libtiff 4.x installed (package is usually called libtiff5).įor macOS you can download prebuilt libtiff binaries here.

Several specs can be defined - delimited by commas. options: -q filter: Resampling filter used for rotations (default: linear, values: nearest|linear|cubic|lanczos) -t a|treshold: Auto threshold or value in 0.255 (default: a) -r rect: Skew detection only in content rectangle (pixels): left,top,right,bottom (default: whole page) -f format: Force output pixel format (values: b1|g8|rgb24|rgba32) -l angle: Skip deskewing step if skew angle is smaller (default: 0.01) -g flags: Operational flags (any combination of): c - auto crop, d - detect only (no output to file) -s info: Info dump (any combination of): s - skew detection stats, p - program parameters, t - timings -c specs: Output compression specs for some file formats. Usage: deskew input input: Input image file Options: -o output: Output image file (default: out.png) -a angle: Maximal expected skew angle (both directions) in degrees (default: 10) -b color: Background color in hex format RRGGBB|LL|AARRGGBB (default: black) Ext.
