gradio_tiff
A custom Gradio component that displays multi-page TIFF images.
Install
pip install gradio_tiff
Quick start
import gradio as gr
from gradio_tiff import Tiff
def echo(path: str | None) -> str | None:
return path
demo = gr.Interface(
fn=echo,
inputs=Tiff(value=Tiff().example_value(), label="Upload TIFF"),
outputs=Tiff(label="Echoed TIFF"),
)
if __name__ == "__main__":
demo.launch()
The component:
- accepts
.tif/.tiffuploads (single file), - renders each page as a PNG canvas and shows page navigation if the file is multi-page,
- exposes the local file path to your Python function via
preprocess, - packages a return value (path or URL) as a
FileDatapayload viapostprocess, - emits
upload,changeandclearevents.
API reference
See DOCS.md for the full auto-generated reference.
Metadata
Release files for gradio-tiff 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gradio_tiff-0.2.0.tar.gz | 708.6 kB | Without provenance | Details for gradio_tiff-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gradio_tiff-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for gradio_tiff-0.2.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / gradio_tiff-0.2.0.tar.gz
| Download URL | gradio_tiff-0.2.0.tar.gz |
|---|---|
| Size | 708.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee3d378ac0d7426daadef2582dc35520b0e9c9c7e43b15b80ff84096e6adef61
|
|
BLAKE2b-256 checksum How to use checksums |
4304b695967e7ef81a7b614fe962cef9f80c63e13643e00dd476c749912768b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / gradio_tiff-0.2.0-py3-none-any.whl
| Download URL | gradio_tiff-0.2.0-py3-none-any.whl |
|---|---|
| Size | 501.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1135c2f8bb398e9872e7618f97ee8c58916d460327c4533193442769a8b72191
|
|
BLAKE2b-256 checksum How to use checksums |
cfd8b1b93b2ddc3b88d0497896311faf89ce7920282882dcfb554f5c0f6a7a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Security for gradio-tiff 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.