From: Bastian Dehn Date: Sat, 1 Feb 2025 15:29:31 +0000 (+0100) Subject: update readme with new libraries X-Git-Tag: v1.0.29^2~3^2~2 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=f7259edc79d61f3a31edecf445f0849d7eb2b76b;p=sane-kds-s2000w-net.git update readme with new libraries --- diff --git a/readme.md b/readme.md index 29af4a6..f3cdc43 100644 --- a/readme.md +++ b/readme.md @@ -28,6 +28,9 @@ https://support.alarisworld.com/de-de/s2080w-scanner#Software - [confuse](https://www.nongnu.org/confuse/manual/index.html) - read config file - [curl](https://curl.se/libcurl) - communicate with scanner - [json-c](https://json-c.github.io/json-c/json-c-current-release/doc/html/index.html) - parse response +- [jpeg](https://libjpeg-turbo.org) - read color and gray jpeg +- [tiff](https://libtiff.gitlab.io/libtiff) - read bw tiff +- [netpbm](https://netpbm.sourceforge.net) - write pnm image - [imagemagick](https://imagemagick.org/script/magick-core.php) - convert jpg to pnm - math - calc bytes per line - pthread - heartbeat interval sleep @@ -38,6 +41,16 @@ https://support.alarisworld.com/de-de/s2080w-scanner#Software ## Build +### Install Dependencies + +You need to install dependencies + +```bash +sudo apt-get install imagemagick sane libsane-dev libconfuse-dev libcurl4-gnutls-dev libjson-c-dev libjpeg-dev libnetpbm-dev libtiff-dev libmagickcore-dev +``` + +### Build source + ```bash mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release .. @@ -45,14 +58,19 @@ make sudo make install ``` -### Build deb package - -You need to install dependencies +You can build with ImageMagick with cmake option **IMAGEMAGICK=ON**. This disable +another jpeg, tiff and netpbm libraries to convert image, then use ImageMagick +old converter before **v1.0.29**. ```bash -sudo apt-get install imagemagick sane libsane-dev libconfuse-dev libcurl4-gnutls-dev libjson-c-dev libmagickcore-dev +mkdir build && cd build +cmake -DCMAKE_BUILD_TYPE=Release -DIMAGEMAGICK=ON .. +make +sudo make install ``` +### Build deb package + Build Package ```bash