Metadata-Version: 2.1
Name: dicom-decompress
Version: 0.0.3
Summary: Minimal command-line tool for decompressing DICOM files with compressed pixel data.
Home-page: https://github.com/exini/dicom-decompress
Author: Karl Sjöstrand
Author-email: karl.sjostrand@exini.com
License: GPLv3
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: numpy (==1.20.1)
Requires-Dist: pydicom (==2.1.2)
Requires-Dist: pylibjpeg (==1.1.1)
Requires-Dist: pylibjpeg-libjpeg (==1.1.0)
Requires-Dist: pylibjpeg-openjpeg (==1.0.1)
Requires-Dist: wheel (==0.35.1)

# dicom-decompress

A command-line utility for decompressing DICOM files with compressed pixel data

## Installation

```bash
pip install dicom-decompress
```

This will install the terminal command `dicom-decompress` in your environment.

To decompress a single file run

```bash
dicom-decompress in.dcm out.dcm
```

where `in.dcm` is the file to decompress and `out.dcm` is the decompressed target file.

To decompress multiple files in-place run e.g.

```bash
find . -name "*.dcm" -exec echo {} \; -exec dicom-decompress {} {} \;
```

### Dependencies

* [numpy](https://pypi.org/project/numpy/)
* [pydicom](https://pypi.org/project/pydicom/)
* [pylibjpeg](https://pypi.org/project/pylibjpeg/)
* [pylibjpeg-libjpeg](https://pypi.org/project/pylibjpeg-libjpeg/)
* [pylibjpeg-openjpeg](https://pypi.org/project/pylibjpeg-openjpeg/)

## Development

* **To build**: `python setup.py sdist bdist_wheel` *(requires python3 + wheel package)*
* **To install**: `pip install --force-reinstall dist/dicom_decompress-x.y.z-py3-none-any.whl`, *(x.y.z is version, see
  setup.py)*
* **To publish**
  * Install twine: `pip install twine`
  * Build package (cf. above)
  * Make sure it passes the twine check: `twine check dist/*`
  * Publish: `twine upload dist/*`


