# baubiologie-preprocessor

> Update the dependency tree. ```sh sudo apt update ``` Install npm and node.js to download and execute the preprocessor. ```sh sudo apt install nodejs npm build-essential imagemagick -y ``` Install the preprocessor globally so you can use it everyw

Latest version **1.3.1** (published 2020-10-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install baubiologie-preprocessor
pnpm add baubiologie-preprocessor
yarn add baubiologie-preprocessor
bun add baubiologie-preprocessor
```

Provides the command `preprocessor`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2020-10-16 |
| First published | 2020-09-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | se-team |

## Links

- npm: https://www.npmjs.com/package/baubiologie-preprocessor
- npm.io page: https://npm.io/package/baubiologie-preprocessor

## Dependencies (1)

- [glob](https://npm.io/package/glob.md) ^7.1.6

## Recent versions

- 1.3.1 (latest) — 2020-10-16
- 1.3.0 — 2020-10-15
- 1.2.0 — 2020-10-01
- 1.1.4 — 2020-10-01
- 1.1.2 — 2020-09-29
- 1.1.1 — 2020-09-29
- 1.1.0 — 2020-09-29
- 1.0.5 — 2020-09-29
- 1.0.4 — 2020-09-29
- 1.0.3 — 2020-09-29
- 1.0.2 — 2020-09-28
- 1.0.1 — 2020-09-28
- 1.0.0 — 2020-09-28

## README

## Installation ( Linux )
Update the dependency tree.
```sh
sudo apt update
```
Install npm and node.js to download and execute the preprocessor.
```sh
sudo apt install nodejs npm build-essential imagemagick -y
```
Install the preprocessor globally so you can use it everywhere.
```sh
npm install -g baubiologie-preprocessor
```

## Installation ( Windows )

Install [ImageMagick](https://imagemagick.org/download/binaries/ImageMagick-7.0.10-31-Q16-x64-static.exe) that performs the detection for blurry images.

Install [Node.js](https://nodejs.org/en/download/) for the executable and file system operation.

Open CMD and use this command to install the program.
```sh
npm install -g baubiologie-preprocessor
```

## Update the installation

Open CMD and use this command to update the program.
```sh
npm update -g baubiologie-preprocessor
```

## Usage

#### General

The source folder holds the original `.tif` images and the destination folder holds the `.png` output.
```sh
preprocessor <microscope> <source> <destination> <quality/remove>
```

microscope : One of ['zeiss','free'] <br>
source : 'image'<br>
destination : 'output'<br>
quality/remove: If microscope == free then see #Quality<br>
                If microscope == zeiss then see #Remove<br>

#### Quality

The preprocessor can set different levels of image quality
```sh
preprocessor free images output 92
```
Quality is 1 (lowest image quality and highest compression) to 100 (best quality but least effective compression). The default is to use the estimated quality of your input image if it can be determined, otherwise 92.

#### Remove

The preprocessor can be set to remove the old images for the zeiss microscope
```sh
preprocessor zeiss images output yes
```
A short yes at the end will remove all files 

#### Example
A working example ( Linux )
```sh
preprocessor zeiss ./images/ ./output/ yes
```


A working example ( Windows )
```sh
preprocessor zeiss images output
```

---
_Source: https://npm.io/package/baubiologie-preprocessor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
