Metadata-Version: 2.4
Name: aih3image-tools
Version: 0.1.0
Summary: Summarize image brightness and tonal range to help compare image assets.
License-Expression: MIT
Project-URL: Homepage, https://aih3image.com/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package
Keywords: media,image brightness,inspection
Requires-Python: >=3.9
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: Pillow>=10
Dynamic: license-file

AI H3 Image — Image Brightness Tools
====================================

Summarize image brightness and tonal range to help compare image assets.

This tool works with local files and prints a JSON report. It does not upload
files, connect to AI H3 Image, or generate media. Use the browser-based service
separately at `AI H3 Image <https://aih3image.com/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package>`_.

Installation
------------

Python 3.9 or later is required. Pillow is installed as a dependency.

.. code-block:: bash

   pip install aih3image-tools

Usage
-----

.. code-block:: bash

   aih3image-tools image.png

The command prints JSON to standard output. If a file cannot be read, it prints
an error and returns a nonzero exit code. Input files are not modified.

What the report means
---------------------

Brightness is measured from a reduced grayscale copy on a 0–255 scale. It is informational and does not assess image quality or verify model requirements.

Example report
--------------

For a small example file, output can look like this; actual values vary with
the input:

.. code-block:: json

   {"path": "image.png", "mean_brightness": 128.0, "brightness_stddev": 0.0, "darkest": 128, "brightest": 128, "scale": "0-255"}

Mean brightness describes average grayscale intensity; standard deviation describes tonal spread in the sampled image.

Use from Python
---------------

.. code-block:: python

   from aih3image_tools import analyze

   report = analyze("image.png")
   print(report)

The function reads the local file and returns a dictionary. File and parsing
errors are raised to the caller.

Common questions
----------------

**Does the package generate media?**
   No. It analyzes local files; generation is a separate website workflow.

**Does it upload my files?**
   No. The tool performs its inspection locally. A website upload, if you choose
   to make one, is a separate action.

**Does the report guarantee website or model compatibility?**
   No. Check the website's current requirements for the chosen workflow.

Workflow
--------

1. Inspect your local media with the command above.
2. Review the report and decide which asset to use.
3. Open `AI H3 Image <https://aih3image.com/?utm_source=pypi&utm_medium=referral&utm_campaign=python_package>`_
   and follow the available workflow on the website.

Available upload formats, settings and credit costs depend on the selected
website workflow. This package does not validate those requirements.

License
-------

MIT License.
