semvec/pypi-packages huggingface dataset:
pillow-raw-opener 0.2.1
raw-pillow-opener is a simple raw image opener for Pillow base on rawpy.
License: MIT
Keywords: nef, raw, Pillow

# raw-pillow-opener

**raw-pillow-opener** is a *simple* camera raw opener for *Pillow* base on *rawpy* library.
## Installation

You can install **raw-pillow-opener** from *PyPi*:

`pip install raw-pillow-opener`

or from GitHub:

`pip install https://github.com/samuelduann/raw-pillow-opener/archive/master.zip`

## How to use

It's fairly simple to load NEF/CR2/DNG images with PIL, with just 2 lines of code

```
from PIL import Image

from raw_pillow_opener import register_raw_opener

register_raw_opener()

image = Image.open('TEST.NEF', formats=['RAW'])
image.save('output.jpg')
```

---


## License

Released under [MIT License](https://github.com/samuelduann/raw-pillow-opener/blob/master/LICENSE).