galfar / deskew

Deskew is a command line tool for deskewing scanned text documents. It uses Hough transform to detect "text lines" in the image. As an output, you get an image rotated so that the lines are horizontal.
http://galfar.vevb.net/deskew
Mozilla Public License 2.0
163 stars 26 forks source link

Missing TIFF support in MacOS build of Deskew #9

Open galfar opened 6 years ago

galfar commented 6 years ago

Many reports regarding failure to load TIFF in MacOS:

Deskew 1.20 (2016-09-01) by Marek Mauder
http://galfar.vevb.net/deskew/
Preparing input image (1.tif) ...
EInvalidOp: Invalid floating point operation

Unfortunately TIFF is not supported by OSX build of Deskew right now. When you run deskew without params you can see the list of supported formats is missing TIFF. That error message is really confusing though - it should say "TIFF not supported".

Easy way to implement it: link to libtiff dynamic library as done in Linux build. Downside is that on MacOS libtiff is not so ubiquitous as in Linux world. You can get it with MacPorts, Fink, etc. but some self-contained solution is preferred.

galfar commented 6 years ago

As of v1.25 solution using libtiff in macOS is implemented.

galfar commented 5 years ago

libtiff binaries for 64-bit macOS are now included in the release of DeskewGui so it can work with TIFFs even if libtiff is not installed in the system.

galfar commented 5 years ago

libtiff binaries can now also be downloaded here: https://galfar.github.io/store/TiffLibBins-macOS.zip