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).
Raw data
{
"_id": null,
"home_page": "https://github.com/pytorch-labs/torchvision-extra-decoders/",
"name": "torchvision-extra-decoders",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": null,
"author": "PyTorch Team",
"author_email": "packages@pytorch.org",
"download_url": null,
"platform": null,
"description": "An extension of [TorchVision](https://github.com/pytorch/vision) for decoding\nAVIF and HEIC images.\n\n## Usage\n\nAssuming torchvision is already installed:\n\n```bash\n$ pip install torchvision-extra-decoders\n```\n\nThen, you can use the HEIC and AVIF decoders from torchvision like the other\ndecoders ([docs](https://pytorch.org/vision/stable/io.html)):\n\n```py\nfrom torchvision.io import decode_image, decode_heic, decode_avif\n\nimg = decode_image(\"image.heic\")\nimg = decode_image(\"image.avif\")\n\nimg = decode_heic(\"image.heic\")\nimg = decode_avif(\"image.avif\")\n```\n\n## LICENSE\n\nThis project is released under the [LGPL 2.1 License](./LICENSE).\n",
"bugtrack_url": null,
"license": "LGPLv2.1",
"summary": "An extension of torchvision for decoding AVIF and HEIC images.",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/pytorch-labs/torchvision-extra-decoders/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "5f3b2d26447bae4116d9d47516454aa820542d3e4dd29656caaaf45089e6c37d",
"md5": "a0ee688fc862ee3497703bfeff68b0ac",
"sha256": "b591b4f64a8389f7e28473673a8a3a526d8f2bf55f85b9ca58d24399ff1e4485"
},
"downloads": -1,
"filename": "torchvision_extra_decoders-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "a0ee688fc862ee3497703bfeff68b0ac",
"packagetype": "bdist_wheel",
"python_version": "cp310",
"requires_python": ">=3.9",
"size": 19557105,
"upload_time": "2024-12-10T13:43:09",
"upload_time_iso_8601": "2024-12-10T13:43:09.021273Z",
"url": "https://files.pythonhosted.org/packages/5f/3b/2d26447bae4116d9d47516454aa820542d3e4dd29656caaaf45089e6c37d/torchvision_extra_decoders-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5d5d85a6939f1fbd4c0d7168f492301149373dc8dbd16105961e5bb5ebad0d5a",
"md5": "23a3a10b3d9d26e45ba8d11c47be2131",
"sha256": "c7308c561292a0dc9aed7d09f9f52962c365e3c1a380a17f437e280a45a36e48"
},
"downloads": -1,
"filename": "torchvision_extra_decoders-0.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "23a3a10b3d9d26e45ba8d11c47be2131",
"packagetype": "bdist_wheel",
"python_version": "cp311",
"requires_python": ">=3.9",
"size": 19558237,
"upload_time": "2024-12-10T13:43:14",
"upload_time_iso_8601": "2024-12-10T13:43:14.889625Z",
"url": "https://files.pythonhosted.org/packages/5d/5d/85a6939f1fbd4c0d7168f492301149373dc8dbd16105961e5bb5ebad0d5a/torchvision_extra_decoders-0.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "909464c9de002aaaf20e6283f68bfd1c0d1c9757e66cc711ccf5575677f7f033",
"md5": "b8066a4fb295135d5e831437af934661",
"sha256": "cab6f956a8c02e5eaacb80ff6e4a045f1e4484692a81820602e7580fcf5d9d7f"
},
"downloads": -1,
"filename": "torchvision_extra_decoders-0.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "b8066a4fb295135d5e831437af934661",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.9",
"size": 19558057,
"upload_time": "2024-12-10T13:43:20",
"upload_time_iso_8601": "2024-12-10T13:43:20.534992Z",
"url": "https://files.pythonhosted.org/packages/90/94/64c9de002aaaf20e6283f68bfd1c0d1c9757e66cc711ccf5575677f7f033/torchvision_extra_decoders-0.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f3e06129d2970543871261c8375de09c2f0b91578fd95c38c315ef32e188cee0",
"md5": "51415423adc3bd8f3db155456b32cb0e",
"sha256": "b119ffb98dd4b57d167b3b66aa77fc7d528926c483bd856c65b6169f9cb5d8be"
},
"downloads": -1,
"filename": "torchvision_extra_decoders-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "51415423adc3bd8f3db155456b32cb0e",
"packagetype": "bdist_wheel",
"python_version": "cp39",
"requires_python": ">=3.9",
"size": 19556811,
"upload_time": "2024-12-10T13:43:25",
"upload_time_iso_8601": "2024-12-10T13:43:25.943755Z",
"url": "https://files.pythonhosted.org/packages/f3/e0/6129d2970543871261c8375de09c2f0b91578fd95c38c315ef32e188cee0/torchvision_extra_decoders-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-10 13:43:09",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pytorch-labs",
"github_project": "torchvision-extra-decoders",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "torchvision-extra-decoders"
}