Metadata-Version: 2.1
Name: thumbgen-cli
Version: 0.1.8
Summary: Fast VFX thumbnail generation and image inspection with ThumbGen
Requires-Python: >=3.9
License: Apache-2.0
Keywords: openexr,exr,opencolorio,ocio,aces,cryptomatte,openimageio,vfx,thumbnail,hdr,psd
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: C++
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Project-URL: Homepage, https://mogurt.github.io/ThumbGen/
Project-URL: Repository, https://github.com/mogurt/ThumbGen
Project-URL: Documentation, https://mogurt.github.io/ThumbGen/
Project-URL: Issues, https://github.com/mogurt/ThumbGen/issues
Description-Content-Type: text/markdown

# ThumbGen CLI

ThumbGen generates thumbnails from production images and inspects their layers,
channels, and metadata. It supports OpenEXR, Cryptomatte, PSD, HDR, and common
image formats, with OpenColorIO color management.

The wheel bundles the ThumbGen executable and its runtime libraries. It requires
Python 3.9 or later and runs on x86-64 Windows or x86-64 Linux with glibc 2.17
or later. It has no Python runtime dependencies.

## Install and run

```sh
pip install thumbgen-cli
thumbgen convert frame.exr --output preview.jpg --size 960
thumbgen inspect frame.exr --json
thumbgen batch --manifest jobs.json --json
```

For a one-off run, use `uvx --from thumbgen-cli thumbgen inspect frame.exr --json`.
The installed package also supports `python -m thumbgen_cli`.

## Python API

```python
import thumbgen_cli

print(thumbgen_cli.version()["version"])
print(thumbgen_cli.inspect("frame.exr"))
result = thumbgen_cli.convert("frame.exr", output="preview.jpg", sizes=[960])
batch = thumbgen_cli.batch("jobs.json", on_event=print)
```

`convert` returns the conversion result and `batch` returns its result rows,
summary, and return code. Use `check=False` to inspect failed conversions or
batches directly, or catch `ThumbGenError` for its `code`, `message`, and
`returncode`. For an in-memory batch manifest, relative paths start at the
current working directory. For a manifest file, they start at its parent directory.

Use `run([...])` for other CLI arguments and `binary_path()` for the executable
path. Set `THUMBGEN_BINARY` to use a locally built executable during development.

See the [ThumbGen documentation](https://mogurt.github.io/ThumbGen/) for CLI
options, supported formats, and the batch manifest schema.
