Metadata-Version: 2.2
Name: torchvision-extra-decoders
Version: 0.0.2
Summary: An extension of torchvision for decoding AVIF and HEIC images.
Home-page: https://github.com/pytorch-labs/torchvision-extra-decoders/
Author: PyTorch Team
Author-email: packages@pytorch.org
License: LGPLv2.1
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-python
Dynamic: summary

An extension of [TorchVision](https://github.com/pytorch/vision) for decoding
AVIF and HEIC images.

## Usage

Assuming torchvision is already installed:

```bash
$ pip install torchvision-extra-decoders
```

Then, you can use the HEIC and AVIF decoders from torchvision like the other
decoders ([docs](https://pytorch.org/vision/stable/io.html)):

```py
from torchvision.io import decode_image, decode_heic, decode_avif

img = decode_image("image.heic")
img = decode_image("image.avif")

img = decode_heic("image.heic")
img = decode_avif("image.avif")
```

## LICENSE

This project is released under the [LGPL 2.1 License](./LICENSE).
