- [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
## 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 ..
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